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.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/www/js/apps.js b/www/js/apps.js
index ab5d4b9..02ed76f 100644
--- a/www/js/apps.js
+++ b/www/js/apps.js
@@ -25,7 +25,7 @@
var Rivendell = Rivendell || {};
var apps_current = null;
-var rivendell = null;
+var rdxport = null;
var importer = null;
function apps_select(app) {
@@ -101,9 +101,9 @@ function apps_init() {
if(auth_token && auth_username) {
// todo: do this at a central place
- rivendell = new Rivendell.Rdxport(auth_username, auth_token, '/rd-bin/rdxport.cgi');
- rivendell.setListDropboxesEndpoint('/rh-bin/listdropboxes.cgi');
- rivendell.setMusicgridEndpoint('/rh-bin/musicgrid.cgi');
+ rdxport = new Rivendell.Rdxport(auth_username, auth_token, '/rd-bin/rdxport.cgi');
+ rdxport.setListDropboxesEndpoint('/rh-bin/listdropboxes.cgi');
+ rdxport.setMusicgridEndpoint('/rh-bin/musicgrid.cgi');
apps_select(apps_current);
}
@@ -111,9 +111,9 @@ function apps_init() {
$(window).on('popstate', function(event) {
if(auth_token && auth_username) {
// todo: do this at a central place
- rivendell = new Rivendell.Rdxport(auth_username, auth_token, '/rd-bin/rdxport.cgi');
- rivendell.setListDropboxesEndpoint('/rh-bin/listdropboxes.cgi');
- rivendell.setMusicgridEndpoint('/rh-bin/musicgrid.cgi');
+ rdxport = new Rivendell.Rdxport(auth_username, auth_token, '/rd-bin/rdxport.cgi');
+ rdxport.setListDropboxesEndpoint('/rh-bin/listdropboxes.cgi');
+ rdxport.setMusicgridEndpoint('/rh-bin/musicgrid.cgi');
apps_select(locationHrefValue());
}
@@ -136,6 +136,6 @@ function apps_cleanup() {
$(window).off('popstate');
importer = null;
- rivendell = null;
+ rdxport = null;
apps_current = null;
}