diff options
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/musicgrid.js | 2 | ||||
-rw-r--r-- | www/js/rivendell.rh.js | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/www/js/musicgrid.js b/www/js/musicgrid.js index eca1de0..c17b79e 100644 --- a/www/js/musicgrid.js +++ b/www/js/musicgrid.js @@ -27,7 +27,7 @@ var rivendell = null; function musicgrid_init() { rivendell = new Rivendell.Rivendell(auth_username, auth_token, '/rd-bin/rdxport.cgi'); rivendell.setMusicgridEndpoint('/rh-bin/musicgrid.cgi'); - //rivendell.getMusicgrid(); + rivendell.getMusicgrid(); } function musicgrid_cleanup() { diff --git a/www/js/rivendell.rh.js b/www/js/rivendell.rh.js index abec2d7..25891f2 100644 --- a/www/js/rivendell.rh.js +++ b/www/js/rivendell.rh.js @@ -49,17 +49,17 @@ 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) { +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) { +Rivendell.Rivendell.prototype.setMusicgrid = function(dow, hour, name, success) { var command = { COMMAND: 'set', LOGIN_NAME: this.username, @@ -69,4 +69,4 @@ Rivendell.Rivendell.prototype.addAndEditCut = function(cartNumber, options, succ NAME: name }; return $.post(this.musicgridEndpoint, command, success, "xml"); -};*/ +}; |