Skip to content

Instantly share code, notes, and snippets.

@anthonysterling
Created February 18, 2014 14:25
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 anthonysterling/9072011 to your computer and use it in GitHub Desktop.
Save anthonysterling/9072011 to your computer and use it in GitHub Desktop.
AjaxifyEventbriteDeletePromotion.js
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