added command support to toolbar.

This commit is contained in:
kay.one 2013-05-11 16:39:32 -07:00
parent a816a83f3a
commit c8a48d5df3
6 changed files with 136 additions and 36 deletions

View file

@ -0,0 +1,11 @@
"use strict";
define(['app'], function () {
NzbDrone.Commands.Execute = function (name) {
return $.ajax({
type: 'POST',
url : NzbDrone.Constants.ApiRoot + '/command',
data: JSON.stringify({command: name})
});
};
});