mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-10-02 00:34:37 +02:00
removed NzbDrone. namespace, everything is done using require.
This commit is contained in:
@@ -1,17 +1,16 @@
|
||||
'use strict';
|
||||
define(['app'], function () {
|
||||
define({
|
||||
Execute: function (name, properties) {
|
||||
var data = { command: name };
|
||||
|
||||
NzbDrone.Commands.Execute = function (name, properties) {
|
||||
var data = { command: name };
|
||||
if (properties) {
|
||||
$.extend(data, properties);
|
||||
}
|
||||
|
||||
if (properties) {
|
||||
$.extend(data, properties);
|
||||
return $.ajax({
|
||||
type: 'POST',
|
||||
url : window.ApiRoot + '/command',
|
||||
data: JSON.stringify(data)
|
||||
});
|
||||
}
|
||||
|
||||
return $.ajax({
|
||||
type: 'POST',
|
||||
url : NzbDrone.Constants.ApiRoot + '/command',
|
||||
data: JSON.stringify(data)
|
||||
});
|
||||
};
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user