diff options
author | Peter Grassberger <petertheone@gmail.com> | 2016-06-27 23:12:39 (GMT) |
---|---|---|
committer | Peter Grassberger <petertheone@gmail.com> | 2016-06-27 23:12:39 (GMT) |
commit | 7f14cd762b6a3381c5f3f926ed68c3c0e8cdf4d2 (patch) | |
tree | f820a8c710faafc57ed211ed34d2b4cb67c922eb /www/js/router.js | |
parent | d5d29c8889a9dc655044a1cf0926c1ac892b6696 (diff) | |
parent | c208d100066d87c39ae5fa1287955998e10d5154 (diff) |
Merge branch 'websocket'
# Conflicts:
# build.sh
Diffstat (limited to 'www/js/router.js')
-rw-r--r-- | www/js/router.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/www/js/router.js b/www/js/router.js index cfeaf23..6dd6744 100644 --- a/www/js/router.js +++ b/www/js/router.js @@ -28,6 +28,8 @@ var router = null; var importer = null; var rdxport = null; +jQuery.event.props.push('dataTransfer'); + $(document).ready(function() { clock = new Clock(); clock.start(); @@ -39,6 +41,7 @@ $(document).ready(function() { Rdxport.Router = function(auth) { this.auth = auth; this.authView = new Rdxport.AuthView(this.auth); + this.activeRoute = null; }; Rdxport.Router.prototype.route = function(page, subpage) { @@ -52,7 +55,7 @@ Rdxport.Router.prototype.route = function(page, subpage) { } if (!importer) { - importer = new Rdxport.Importer(this.auth.username, this.auth.token); + importer = new Rdxport.Importer(this.auth.username, this.auth.token, 'wss://import.helsinki.at/rhimportd'); window.onbeforeunload = function(event) { if (importer.isUploading()) { return 'Achtung: Es laufen noch imports.'; @@ -117,6 +120,7 @@ Rdxport.Router.prototype.route = function(page, subpage) { this.logout(); break; } + this.activeRoute = page; href = locationHrefValue(); if (href[1] !== page && page !== 'logout' && (!href[2] || href[2] !== subpage)) { |