aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/update.js
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2013-08-15 23:25:20 +0200
committerJan-Christoph Borchardt <hey@jancborchardt.net>2013-08-15 23:25:20 +0200
commit3563eecffff7879aa87b7fc8c54b43f8e14281f0 (patch)
tree25fbafb06ba5c4ce2f301dd92d82d30e9783ed64 /core/js/update.js
parentb44cab5acc1adccf36ebd18ab7f4da9caf4c7932 (diff)
parentbd1895bdf8dff07bf9dc9803ce991e39daa52acc (diff)
downloadnextcloud-server-3563eecffff7879aa87b7fc8c54b43f8e14281f0.tar.gz
nextcloud-server-3563eecffff7879aa87b7fc8c54b43f8e14281f0.zip
merge master into more-whitespace
Diffstat (limited to 'core/js/update.js')
-rw-r--r--core/js/update.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/js/update.js b/core/js/update.js
index 8ab02bbf935..2c28e72f7cd 100644
--- a/core/js/update.js
+++ b/core/js/update.js
@@ -5,6 +5,9 @@ $(document).ready(function () {
});
updateEventSource.listen('error', function(message) {
$('<span>').addClass('error').append(message).append('<br />').appendTo($('.update'));
+ message = 'Please reload the page.';
+ $('<span>').addClass('error').append(message).append('<br />').appendTo($('.update'));
+ updateEventSource.close();
});
updateEventSource.listen('failure', function(message) {
$('<span>').addClass('error').append(message).append('<br />').appendTo($('.update'));
@@ -20,4 +23,4 @@ $(document).ready(function () {
window.location.href = OC.webroot;
}, 3000);
});
-}); \ No newline at end of file
+});