Created
March 15, 2016 11:54
-
-
Save xyulex/6b90487f13d5e64ed1cc to your computer and use it in GitHub Desktop.
jQuery: 2 clicks on confirm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
e.stopImmediatePropagation();