diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-10-14 10:04:20 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-20 13:29:44 +0200 |
commit | 1e64968ff7cf24ba9f59a528237163d412fa501c (patch) | |
tree | 01bd9108992515ec9d75ede94289065f85c785f7 /core/js/update.js | |
parent | 06ddd4088635e47f4fe08b26e8b8a41c9786bc92 (diff) | |
download | nextcloud-server-1e64968ff7cf24ba9f59a528237163d412fa501c.tar.gz nextcloud-server-1e64968ff7cf24ba9f59a528237163d412fa501c.zip |
Allow leaving update page when errors occurred
Diffstat (limited to 'core/js/update.js')
-rw-r--r-- | core/js/update.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/js/update.js b/core/js/update.js index 7cf9b558c22..090f8fa5d23 100644 --- a/core/js/update.js +++ b/core/js/update.js @@ -51,12 +51,14 @@ }); updateEventSource.listen('error', function(message) { message = message || t('core', 'An error occurred.'); + $(window).off('beforeunload.inprogress'); $('<span>').addClass('error').append(message).append('<br />').appendTo($el); message = t('core', 'Please reload the page.'); $('<span>').addClass('error').append('<a href=".">'+message+'</a><br />').appendTo($el); updateEventSource.close(); }); updateEventSource.listen('failure', function(message) { + $(window).off('beforeunload.inprogress'); $('<span>').addClass('error').append(message).append('<br />').appendTo($el); $('<span>') .addClass('bold') |