jQuery: Migrate to .on(), .off(), .trigger()

This avoids methods that are deprecated in newer versions of jQuery.
This commit is contained in:
webzwo0i 2021-07-05 17:12:47 +02:00 committed by Richard Hansen
parent c7195b1133
commit 4f99933d12
47 changed files with 196 additions and 196 deletions

View file

@ -162,9 +162,9 @@ const padimpexp = (() => {
}
addImportFrames();
$('#importfileinput').change(fileInputUpdated);
$('#importform').unbind('submit').submit(fileInputSubmit);
$('.disabledexport').click(cantExport);
$('#importfileinput').on('change', fileInputUpdated);
$('#importform').off('submit').on('submit', fileInputSubmit);
$('.disabledexport').on('click', cantExport);
},
disable: () => {
$('#impexp-disabled-clickcatcher').show();