summaryrefslogtreecommitdiff
path: root/www/js/apps.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/apps.js')
-rw-r--r--www/js/apps.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/www/js/apps.js b/www/js/apps.js
index 12aba8f..6bdf3d6 100644
--- a/www/js/apps.js
+++ b/www/js/apps.js
@@ -25,6 +25,7 @@
var Rivendell = Rivendell || {};
var apps_current = null;
+var rivendell = null;
function apps_select(app) {
$('.container').removeClass('fullWidth');
@@ -96,6 +97,10 @@ function apps_init() {
apps_current = locationHrefValue();
if(auth_token && auth_username) {
+ rivendell = new Rivendell.Rivendell(auth_username, auth_token, '/rd-bin/rdxport.cgi');
+ rivendell.setListDropboxesEndpoint('/rh-bin/listdropboxes.cgi');
+ rivendell.setMusicgridEndpoint('/rh-bin/musicgrid.cgi');
+
apps_select(apps_current);
}
@@ -121,5 +126,6 @@ function apps_cleanup() {
$(window).off('popstate');
+ rivendell = null;
apps_current = null;
}