summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2022-01-18 18:37:45 +0100
committerLouis Chemineau <louis@chmn.me>2022-01-19 11:07:12 +0100
commitb46ff973e04be5b1315788dfffeba23a653bb6e2 (patch)
treedcdf7012252d7a23c3bf8d1e1b34e04982a32f31 /core
parent3d8d79713706dae0832af2db20fb78b2784724e6 (diff)
downloadnextcloud-server-b46ff973e04be5b1315788dfffeba23a653bb6e2.tar.gz
nextcloud-server-b46ff973e04be5b1315788dfffeba23a653bb6e2.zip
Use less deprecated methods in base.php
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'core')
-rw-r--r--core/js/update.js33
1 files changed, 16 insertions, 17 deletions
diff --git a/core/js/update.js b/core/js/update.js
index 5c1054adcb4..22d680a0e8f 100644
--- a/core/js/update.js
+++ b/core/js/update.js
@@ -146,22 +146,21 @@
})();
-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;
- });
- $('.update-show-detailed').on('click', function() {
- $('#update-progress-detailed').toggleClass('hidden');
- return false;
+$('.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;
+});
+
+$('.update-show-detailed').on('click', function() {
+ $('#update-progress-detailed').toggleClass('hidden');
+ return false;
});