Skip to content
This repository has been archived by the owner on Jan 17, 2019. It is now read-only.

fix bug in IE/Edge for not support native .closest(), use jQuery instead #87

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Confirm dialogs for buttons and links.

Chat room: [![](https://badges.gitter.im/myclabs/jquery.confirm.png)](https://gitter.im/myclabs/jquery.confirm)

> **⚠ WARNING: No maintenance intended**
> This package is not actively maintained.

## Requirements

- jQuery > 1.8
Expand Down
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