Skip to content
This repository was archived by the owner on May 25, 2023. It is now read-only.

Commit ba9da9a

Browse files
committed
Replace deprecated shorthand methods.
1 parent 73e8c6b commit ba9da9a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

js/jquery.fileupload-ui.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -626,13 +626,13 @@
626626
this._on(fileUploadButtonBar.find('.start'), {
627627
click: function (e) {
628628
e.preventDefault();
629-
filesList.find('.start').click();
629+
filesList.find('.start').trigger('click');
630630
}
631631
});
632632
this._on(fileUploadButtonBar.find('.cancel'), {
633633
click: function (e) {
634634
e.preventDefault();
635-
filesList.find('.cancel').click();
635+
filesList.find('.cancel').trigger('click');
636636
}
637637
});
638638
this._on(fileUploadButtonBar.find('.delete'), {
@@ -642,7 +642,7 @@
642642
.find('.toggle:checked')
643643
.closest('.template-download')
644644
.find('.delete')
645-
.click();
645+
.trigger('click');
646646
fileUploadButtonBar.find('.toggle').prop('checked', false);
647647
}
648648
});

js/jquery.fileupload.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,7 @@
11771177
// If the fileInput had focus before it was detached,
11781178
// restore focus to the inputClone.
11791179
if (restoreFocus) {
1180-
inputClone.focus();
1180+
inputClone.trigger('focus');
11811181
}
11821182
// Avoid memory leaks with the detached file input:
11831183
$.cleanData(input.off('remove'));

0 commit comments

Comments
 (0)