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

Commit

Permalink
Replace deprecated shorthand methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
blueimp committed May 15, 2020
1 parent 73e8c6b commit ba9da9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions js/jquery.fileupload-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -626,13 +626,13 @@
this._on(fileUploadButtonBar.find('.start'), {
click: function (e) {
e.preventDefault();
filesList.find('.start').click();
filesList.find('.start').trigger('click');
}
});
this._on(fileUploadButtonBar.find('.cancel'), {
click: function (e) {
e.preventDefault();
filesList.find('.cancel').click();
filesList.find('.cancel').trigger('click');
}
});
this._on(fileUploadButtonBar.find('.delete'), {
Expand All @@ -642,7 +642,7 @@
.find('.toggle:checked')
.closest('.template-download')
.find('.delete')
.click();
.trigger('click');
fileUploadButtonBar.find('.toggle').prop('checked', false);
}
});
Expand Down
2 changes: 1 addition & 1 deletion js/jquery.fileupload.js
Original file line number Diff line number Diff line change
Expand Up @@ -1177,7 +1177,7 @@
// If the fileInput had focus before it was detached,
// restore focus to the inputClone.
if (restoreFocus) {
inputClone.focus();
inputClone.trigger('focus');
}
// Avoid memory leaks with the detached file input:
$.cleanData(input.off('remove'));
Expand Down

0 comments on commit ba9da9a

Please sign in to comment.