mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-13 16:43:58 -07:00
removed NzbDrone. namespace, everything is done using require.
This commit is contained in:
parent
ef62af75df
commit
b0bd3f34f1
121 changed files with 2570 additions and 2587 deletions
|
@ -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)
|
||||
});
|
||||
};
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue