summaryrefslogtreecommitdiff
path: root/www/js/apps.js
diff options
context:
space:
mode:
authorPeter Grassberger <petertheone@gmail.com>2016-02-10 05:47:38 (GMT)
committerPeter Grassberger <petertheone@gmail.com>2016-02-10 05:47:38 (GMT)
commitb1821ae253555aea1e840d4809b1c144a7f5fc15 (patch)
treec4dcdfde192eb6aec39d93964e64f71b625a7327 /www/js/apps.js
parent8ce69bbc3ef2974ab1bc4b02b5320827a1ae9935 (diff)
rename rivendell instance to rdxport
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;
}