diff options
-rw-r--r-- | www/js/apps.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/www/js/apps.js b/www/js/apps.js index 0e52f22..e25c7d1 100644 --- a/www/js/apps.js +++ b/www/js/apps.js @@ -130,11 +130,15 @@ function apps_init() { }); $(document).ajaxError(function(event, jqXHR, settings, thrownError) { - var data = jqXHR.responseText; - var errorString = $(data).find('ErrorString').text(); - var ResponseCode = $(data).find('ResponseCode').text(); - alert(ResponseCode + ': ' + errorString); + //todo: add errors }); + + window.onbeforeunload = function(e) { + if (importer && importer.isUploading()) { + return 'Achtung: Es laufen noch imports.'; + return; + } + }; } function apps_cleanup() { |