summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorPeter Grassberger <petertheone@gmail.com>2015-12-27 22:29:08 (GMT)
committerPeter Grassberger <petertheone@gmail.com>2015-12-27 22:29:08 (GMT)
commit0a690beb87c25445df31044d5887a87209157a8f (patch)
treeb82756ade941968bda229936fce27cb7b9ff9752 /www
parentf7c5ad3a69e89a558a1f9d4375c5aaaee270e997 (diff)
try getMusicgrid
Diffstat (limited to 'www')
-rw-r--r--www/js/musicgrid.js2
-rw-r--r--www/js/rivendell.rh.js8
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");
-};*/
+};