diff options
Diffstat (limited to 'www/js/rivendell.rh.js')
-rw-r--r-- | www/js/rivendell.rh.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/www/js/rivendell.rh.js b/www/js/rivendell.rh.js index 136440c..abec2d7 100644 --- a/www/js/rivendell.rh.js +++ b/www/js/rivendell.rh.js @@ -25,6 +25,9 @@ Rivendell.Rivendell.prototype.setListDropboxesEndpoint = function(listDropboxesEndpoint) { this.listDropboxesEndpoint = listDropboxesEndpoint; }; +Rivendell.Rivendell.prototype.setMusicgridEndpoint = function(musicgridEndpoint) { + this.musicgridEndpoint = musicgridEndpoint; +}; Rivendell.Rivendell.prototype.listDropboxes = function(success) { var command = { @@ -44,3 +47,26 @@ Rivendell.Rivendell.prototype.addAndEditCut = function(cartNumber, options, succ }; // todo: addAndEditCart + +// todo: get grid. musicgrid.cgi, username, pw, cmg(get,set), dow, hour, name +/*Rivendell.Rivendell.prototype.getMusicgrid = function(success) { + var command = { + COMMAND: 'get', + LOGIN_NAME: this.username, + PASSWORD: this.token + }; + return $.post(this.musicgridEndpoint, command, success, "xml"); +};*/ + +// todo: set grid pool +/*Rivendell.Rivendell.prototype.setMusicgrid = function(dow, hour, name, success) { + var command = { + COMMAND: 'set', + LOGIN_NAME: this.username, + PASSWORD: this.token, + DOW: dow, + HOUR: hour, + NAME: name + }; + return $.post(this.musicgridEndpoint, command, success, "xml"); +};*/ |