Skip to content

Instantly share code, notes, and snippets.

@quinn
Created October 23, 2008 21:59
Show Gist options
  • Save quinn/19227 to your computer and use it in GitHub Desktop.
Save quinn/19227 to your computer and use it in GitHub Desktop.
BandInvite = $.clonable({
inviteEl: {}
,successEvent: function () {
debugger;
}
,findAcceptLink: function () {
var invite = this;
this.inviteEl.find('.accept-invite a').click(function () {
$.ajax({
type: 'POST',
url: this.href,
link: this,
data: {
_method: 'put',
'band_invite[confirmed]': true
},
success: invite.successEvent.bind(invite)
});
return false;
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment