summaryrefslogtreecommitdiff
path: root/www/js/rivendell.rh.js
diff options
context:
space:
mode:
authorPeter Grassberger <petertheone@gmail.com>2015-12-16 17:00:24 (GMT)
committerPeter Grassberger <petertheone@gmail.com>2015-12-16 17:00:24 (GMT)
commitaf53fbda45a1d75344ded495cc56c7f37a3460d4 (patch)
tree8647c9591733e5af0936b3c61372b2faeb5840c8 /www/js/rivendell.rh.js
parentecb289de62a82a087df3fea11d4cbed47cb4bedb (diff)
add musicgrid tab
Diffstat (limited to 'www/js/rivendell.rh.js')
-rw-r--r--www/js/rivendell.rh.js26
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");
+};*/