diff options
Diffstat (limited to 'www/js/auth.js')
-rw-r--r-- | www/js/auth.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/www/js/auth.js b/www/js/auth.js index f830a0a..9bc83a8 100644 --- a/www/js/auth.js +++ b/www/js/auth.js @@ -38,6 +38,11 @@ function auth_loginSuccess(data) { sessionStorage.setItem("auth_fullname", auth_fullname); sessionStorage.setItem("auth_token", auth_token); + // 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(apps_current); $('#username-field').html(auth_fullname + ' (' + auth_username + ')'); |