Skip to content

Instantly share code, notes, and snippets.

@matiit
Created May 7, 2015 14:08
Show Gist options
  • Save matiit/77c377b00bbc49caf4fe to your computer and use it in GitHub Desktop.
Save matiit/77c377b00bbc49caf4fe to your computer and use it in GitHub Desktop.
eventsActions.before('removeOne', function(nextCallback, actionBody) {
console.log("Removing event");
var jsonEvent = JSON.stringify(actionBody);
jQ.ajax({
type: 'POST',
dataType: 'json',
contentType: 'application/json',
url: 'http://127.0.0.1:8181/remove',
data: jsonEvent
}).done(function(resp) {
nextCallback(actionBody.id);
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment