Certainly it must be possible to fire the cancel action on an Ajax.InPlaceEditor without clicking the Cancel button. But I just cannot figure out how to do it.
Any suggestions?
Certainly it must be possible to fire the cancel action on an Ajax.InPlaceEditor without clicking the Cancel button. But I just cannot figure out how to do it.
Any suggestions?
Just went though scriptaculous source, and found it:
Thing is, wrapUp is defined as:
wrapUp: function(transport)
so you can pass null as transport when calling it.
leaveEditMode is parameter-less so, you don't need to worry about null values in callbacks. Although, guess any of this two should work.