From 6fcd075730dbd63d5dbb69da0ca5983b51a7240e Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Mon, 20 Jul 2020 12:30:35 +0200 Subject: Use DOMContentLoaded and fix sharebymail loading issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- apps/user_ldap/js/renewPassword.js | 2 +- apps/user_ldap/js/wizard/wizard.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/user_ldap/js') diff --git a/apps/user_ldap/js/renewPassword.js b/apps/user_ldap/js/renewPassword.js index 7a58832c984..307d5f8294d 100644 --- a/apps/user_ldap/js/renewPassword.js +++ b/apps/user_ldap/js/renewPassword.js @@ -30,7 +30,7 @@ OCA.LDAP = _.extend(OC.LDAP || {}, { }, }); -$(document).ready(function() { +window.addEventListener('DOMContentLoaded', function() { $('form[name=renewpassword]').submit(OCA.LDAP.onRenewPassword); if($('#newPassword').length) { diff --git a/apps/user_ldap/js/wizard/wizard.js b/apps/user_ldap/js/wizard/wizard.js index 9ac03e117cd..39ab2e13ef8 100644 --- a/apps/user_ldap/js/wizard/wizard.js +++ b/apps/user_ldap/js/wizard/wizard.js @@ -75,6 +75,6 @@ OCA = OCA || {}; OCA.LDAP.Wizard.Wizard = Wizard; })(); -$(document).ready(function() { +window.addEventListener('DOMContentLoaded', function() { new OCA.LDAP.Wizard.Wizard(); }); -- cgit v1.2.3