diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-05-28 11:29:22 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-05-28 11:29:22 +0200 |
commit | 7e055a94044100c17ffa103c56e2d238f9b4e6ac (patch) | |
tree | abc69be2362914918b281c17f5af3d04fb40bbfe /core/js/update.js | |
parent | ca45937d84266f63e9ccf4a37820ad1e254ba5d3 (diff) | |
download | nextcloud-server-7e055a94044100c17ffa103c56e2d238f9b4e6ac.tar.gz nextcloud-server-7e055a94044100c17ffa103c56e2d238f9b4e6ac.zip |
Fixed DOM elements, styling and code style issues
- Reduced number of DOM elements
- Also added mention of "config" backup.
Diffstat (limited to 'core/js/update.js')
-rw-r--r-- | core/js/update.js | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/core/js/update.js b/core/js/update.js index abf2d6ae6db..cc0f541bd79 100644 --- a/core/js/update.js +++ b/core/js/update.js @@ -18,7 +18,6 @@ * @param $el progress list element */ start: function($el) { - var self = this; if (this._started) { return; } @@ -51,12 +50,16 @@ .addClass('error bold') .append('<br />') .append(t('core', 'The update was unsuccessful.' + - 'Please report this issue to the <a href="https://github.com/owncloud/core/issues" target="_blank">ownCloud community</a>.')) + 'Please report this issue to the ' + + '<a href="https://github.com/owncloud/core/issues" target="_blank">ownCloud community</a>.')) .appendTo($el); }); - updateEventSource.listen('done', function(message) { + updateEventSource.listen('done', function() { // FIXME: use product name - $('<span>').addClass('bold').append('<br />').append(t('core', 'The update was successful. Redirecting you to ownCloud now.')).appendTo($el); + $('<span>').addClass('bold') + .append('<br />') + .append(t('core', 'The update was successful. Redirecting you to ownCloud now.')) + .appendTo($el); setTimeout(function () { OC.redirect(OC.webroot); }, 3000); @@ -73,11 +76,10 @@ })(); $(document).ready(function() { - $('.updateForm').on('submit', function(ev) { - ev.preventDefault(); + $('.updateButton').on('click', function() { var $progressEl = $('.updateProgress'); $progressEl.removeClass('hidden'); - $('.updateForm').addClass('hidden'); + $('.updateOverview').addClass('hidden'); OC.Update.start($progressEl); return false; }); |