diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2013-08-15 23:25:20 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2013-08-15 23:25:20 +0200 |
commit | 3563eecffff7879aa87b7fc8c54b43f8e14281f0 (patch) | |
tree | 25fbafb06ba5c4ce2f301dd92d82d30e9783ed64 /core/js/update.js | |
parent | b44cab5acc1adccf36ebd18ab7f4da9caf4c7932 (diff) | |
parent | bd1895bdf8dff07bf9dc9803ce991e39daa52acc (diff) | |
download | nextcloud-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.js | 5 |
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 +}); |