Skip to content

Commit

Permalink
Merge pull request #1 from Way2Web/master
Browse files Browse the repository at this point in the history
fix bug in IE/Edge for not support native .closest(), use jQuery instead
  • Loading branch information
althaus authored Aug 13, 2018
2 parents e178d34 + e487d7e commit d5387fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.confirm.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
|| (typeof dataOptions.submitForm == "undefined" && options.submitForm)
|| (typeof dataOptions.submitForm == "undefined" && typeof options.submitForm == "undefined" && $.confirm.options.submitForm)
) {
e.target.closest("form").submit();
$(e.target).closest("form").submit();
} else {
var url = e && (('string' === typeof e && e) || (e.currentTarget && e.currentTarget.attributes['href'].value));
if (url) {
Expand Down

0 comments on commit d5387fe

Please sign in to comment.