Reputation: 1586
I an using Mike Tuupola's jQuery jEditable as follows:
function wireupTagCategoryInPlaceEditing() {
$('.category-label').editable(submitTagCategoryEdit, {
event: 'tagcategoryedit', // conditionally triggered in wireupTagCategoryClick()
type: 'text',
submit: ' Ok ',
cancel: 'Cancel',
cssclass: 'tagcategory-inplace-edit'
});
}
function submitTagCategoryEdit(value, settings) {
//handle the edit
}
I need to intercept the cancel event - what is the best way to do that
Upvotes: 2
Views: 1424
Reputation:
$("#editable_text").editable(submitEdit, {
//...
onreset: jeditableReset,
//...
});
function jeditableReset(settings, original) {
// whatever you need to do here
}
Upvotes: 2