1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-18 21:35:51 -04:00

removed NzbDrone. namespace, everything is done using require.

This commit is contained in:
Keivan Beigi
2013-06-24 16:41:59 -07:00
parent ef62af75df
commit b0bd3f34f1
121 changed files with 2570 additions and 2587 deletions
+12 -13
View File
@@ -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)
});
};
});
});