diff options
Diffstat (limited to 'www/js/router.js')
-rw-r--r-- | www/js/router.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/www/js/router.js b/www/js/router.js index 38e8033..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(); @@ -48,7 +50,7 @@ Rdxport.Router.prototype.route = function(page, subpage) { return; } if (importer && importer.isUploading()) { - //alert('Achtung: Es laufen noch imports.'); + alert('Achtung: Es laufen noch imports.'); return; } @@ -56,7 +58,7 @@ Rdxport.Router.prototype.route = function(page, subpage) { 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.'; + return 'Achtung: Es laufen noch imports.'; } }; } @@ -136,7 +138,7 @@ Rdxport.Router.prototype.login = function() { Rdxport.Router.prototype.logout = function() { if (importer && importer.isUploading()) { - //alert('Achtung: Es laufen noch imports.'); + alert('Achtung: Es laufen noch imports.'); return; } |