Created
February 18, 2014 14:25
-
-
Save anthonysterling/9072011 to your computer and use it in GitHub Desktop.
AjaxifyEventbriteDeletePromotion.js
This file contains hidden or 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
deleteForm = function (id) { | |
var form = document.deleteDiscountForm; | |
form.discount.value = id; | |
console.log('Deleting ' + id + ' ...'); | |
jQuery.post(window.location.href, jQuery(form).serialize()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment