Skip to content

Instantly share code, notes, and snippets.

@xyulex
Created March 15, 2016 11:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xyulex/6b90487f13d5e64ed1cc to your computer and use it in GitHub Desktop.
Save xyulex/6b90487f13d5e64ed1cc to your computer and use it in GitHub Desktop.
jQuery: 2 clicks on confirm
jQuery('.expire-btn').on('click', function(e) {
e.stopImmediatePropagation();
tagID = jQuery(this).attr("data-id");
tagName = jQuery(this).attr("data-name");
if (confirm(ET.delete_confirm)) {
jQuery("#" + tagID ).val('1970-01-01');
jQuery("#submit").click();
} else {
return false;
}
});
@xyulex
Copy link
Author

xyulex commented Mar 15, 2016

e.stopImmediatePropagation();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment