summaryrefslogtreecommitdiff
path: root/www/js/router.js
diff options
context:
space:
mode:
authorPeter Grassberger <petertheone@gmail.com>2016-06-27 22:42:51 (GMT)
committerPeter Grassberger <petertheone@gmail.com>2016-06-27 22:42:51 (GMT)
commitbd6186e7233de72b85c0566d12273ede449453b5 (patch)
tree9441db6bc0b2ae1edb575f371e2f73bbeceb333b /www/js/router.js
parent3cc9bda4fbc189cc931b9cfa2163c3ff212ce1fa (diff)
drop dropzone, add websocket uploads
Diffstat (limited to 'www/js/router.js')
-rw-r--r--www/js/router.js8
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;
}