1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-31 20:15:55 +00:00
Lidarr/UI/Commands/CommandController.js
kay.one 769331d45d updated jshint to 2.1.3
single quotes
2013-06-21 23:24:24 -07:00

17 lines
395 B
JavaScript

'use strict';
define(['app'], function () {
NzbDrone.Commands.Execute = function (name, properties) {
var data = { command: name };
if (!properties) {
$.extend(data, properties);
}
return $.ajax({
type: 'POST',
url : NzbDrone.Constants.ApiRoot + '/command',
data: JSON.stringify(data)
});
};
});