diff options
Diffstat (limited to 'www/js/apps.js')
-rw-r--r-- | www/js/apps.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/www/js/apps.js b/www/js/apps.js index 6bdf3d6..ef904f2 100644 --- a/www/js/apps.js +++ b/www/js/apps.js @@ -97,6 +97,7 @@ function apps_init() { apps_current = locationHrefValue(); if(auth_token && auth_username) { + // todo: do this at a central place rivendell = new Rivendell.Rivendell(auth_username, auth_token, '/rd-bin/rdxport.cgi'); rivendell.setListDropboxesEndpoint('/rh-bin/listdropboxes.cgi'); rivendell.setMusicgridEndpoint('/rh-bin/musicgrid.cgi'); @@ -106,6 +107,11 @@ function apps_init() { $(window).on('popstate', function(event) { if(auth_token && auth_username) { + // todo: do this at a central place + 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(locationHrefValue()); } }); |