diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2016-08-04 12:48:25 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2016-08-04 12:48:25 +0200 |
commit | 835dc59d6aca0ab372383184d2a8ebc7e72f67b0 (patch) | |
tree | 39fd96b3c98d29844f5378e7bc6b322d934c51a5 /core/js/update.js | |
parent | 2f9725469d2984851cc441a7c3b8abb525d26390 (diff) | |
download | nextcloud-server-835dc59d6aca0ab372383184d2a8ebc7e72f67b0.tar.gz nextcloud-server-835dc59d6aca0ab372383184d2a8ebc7e72f67b0.zip |
reduce info on update screens, introduce button to refresh
Diffstat (limited to 'core/js/update.js')
-rw-r--r-- | core/js/update.js | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/core/js/update.js b/core/js/update.js index e692a7312b8..32cf2ce5ecc 100644 --- a/core/js/update.js +++ b/core/js/update.js @@ -13,7 +13,7 @@ _started : false, /** - * Start the upgrade process. + * Start the update process. * * @param $el progress list element */ @@ -31,12 +31,12 @@ var self = this; $(window).on('beforeunload.inprogress', function () { - return t('core', 'The upgrade is in progress, leaving this page might interrupt the process in some environments.'); + return t('core', 'The update is in progress, leaving this page might interrupt the process in some environments.'); }); $('#update-progress-title').html(t( 'core', - 'Updating to {version}', { + 'Update to {version}', { version: options.version }) ); @@ -91,17 +91,15 @@ if (hasWarnings) { $el.find('.update-show-detailed').before( - $('<span>') - .append('<br />') - .append(t('core', 'The update was successful. There were warnings.')) + $('<input type="button" class="update-continue" value="'+t('core', 'Continue to Nextcloud')+'">').on('click', function() { + window.location.reload(); + }) ); - var message = t('core', 'Please reload the page.'); - $('<span>').append(message).append('<br />').appendTo($el); } else { // FIXME: use product name - $('<span>') - .append(t('core', 'The update was successful. Redirecting you to Nextcloud now.')) - .appendTo($el); + $el.find('.update-show-detailed').before( + $('<p>'+t('core', 'The update was successful. Redirecting you to Nextcloud now.')+'</p>') + ); setTimeout(function () { OC.redirect(OC.webroot + '/'); }, 3000); @@ -127,7 +125,7 @@ .append(message) .append($('<br>')); }, - + setErrorMessage: function (message) { $('#update-progress-message-error') .show() |