diff options
author | Joas Schilling <coding@schilljs.com> | 2022-01-19 17:12:43 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-01-19 17:12:43 +0100 |
commit | efd32abeca68d16ba81d66429438aa83f7546d64 (patch) | |
tree | 2f04a4f4ad855b3767211f1964c2e72b5d13280e /core/js | |
parent | b46ff973e04be5b1315788dfffeba23a653bb6e2 (diff) | |
download | nextcloud-server-efd32abeca68d16ba81d66429438aa83f7546d64.tar.gz nextcloud-server-efd32abeca68d16ba81d66429438aa83f7546d64.zip |
Revert 'DOMContentLoaded' change
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/update.js | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/core/js/update.js b/core/js/update.js index 22d680a0e8f..1613c3cc93b 100644 --- a/core/js/update.js +++ b/core/js/update.js @@ -146,21 +146,23 @@ })(); -$('.updateButton').on('click', function() { - var $updateEl = $('.update'); - var $progressEl = $('.update-progress'); - $progressEl.removeClass('hidden'); - $('.updateOverview').addClass('hidden'); - $('#update-progress-message-error').hide(); - $('#update-progress-message-warnings').hide(); - OC.Update.start($progressEl, { - productName: $updateEl.attr('data-productname'), - version: $updateEl.attr('data-version') +window.addEventListener('DOMContentLoaded', function() { + $('.updateButton').on('click', function() { + var $updateEl = $('.update'); + var $progressEl = $('.update-progress'); + $progressEl.removeClass('hidden'); + $('.updateOverview').addClass('hidden'); + $('#update-progress-message-error').hide(); + $('#update-progress-message-warnings').hide(); + OC.Update.start($progressEl, { + productName: $updateEl.attr('data-productname'), + version: $updateEl.attr('data-version') + }); + return false; }); - return false; -}); -$('.update-show-detailed').on('click', function() { - $('#update-progress-detailed').toggleClass('hidden'); - return false; + $('.update-show-detailed').on('click', function() { + $('#update-progress-detailed').toggleClass('hidden'); + return false; + }); }); |