summaryrefslogtreecommitdiff
path: root/www/js/rdxport.rh.js
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-09-16 00:39:59 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-09-16 00:42:14 (GMT)
commit8345e332cceaac0c99c6473f1d0cfb3e9fba499e (patch)
treea1aa04f9f862dfbfe4c0b7548707d6f5547122c3 /www/js/rdxport.rh.js
parentc22d049b1f6e216fa0f43d7c0af9d4207bb8e910 (diff)
jingles are now activate/deactivated via evergreen flag
Diffstat (limited to 'www/js/rdxport.rh.js')
-rw-r--r--www/js/rdxport.rh.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/www/js/rdxport.rh.js b/www/js/rdxport.rh.js
index b5b58c9..868deeb 100644
--- a/www/js/rdxport.rh.js
+++ b/www/js/rdxport.rh.js
@@ -38,6 +38,10 @@ Rdxport.Rdxport.prototype.setListDropboxesEndpoint = function(listDropboxesEndpo
this.listDropboxesEndpoint = listDropboxesEndpoint;
};
+Rdxport.Rdxport.prototype.setCutEvergreenEndpoint = function(cutEvergreenEndpoint) {
+ this.cutEvergreenEndpoint = cutEvergreenEndpoint;
+};
+
Rdxport.Rdxport.prototype.setMusicgridEndpoint = function(musicgridEndpoint) {
this.musicgridEndpoint = musicgridEndpoint;
};
@@ -97,6 +101,17 @@ Rdxport.Rdxport.prototype.addAndEditCart = function(groupName, type, cartNumber,
return $.post(this.endpoint, options, success, 'xml');
};
+Rdxport.Rdxport.prototype.setCutEvergreen = function(cartNumber, cutNumber, value, success) {
+ var command = {
+ LOGIN_NAME: this.username,
+ PASSWORD: this.token,
+ CART_NUMBER: cartNumber,
+ CUT_NUMBER: cutNumber,
+ VALUE: value
+ };
+ return $.post(this.cutEvergreenEndpoint, command, success, "xml");
+};
+
Rdxport.Rdxport.prototype.getMusicgrid = function(success) {
var command = {
LOGIN_NAME: this.username,