How to cancel an edit (using inline editor) without submitting form
How to cancel an edit (using inline editor) without submitting form
I am using inline editing and submit on blur. How can I cancel an edit (editor.close()) without it submitting? I do have a cancel button that does close the editor, but it also fires the blur event and submits the row to the ajax function.
The problem is that I am updating a time stamp on every edit, but if a user clicks on a row that they don't want to edit I need a way to close the editor without the blur event firing.
This discussion has been closed.
Answers
Never mind. I was doing something stupid...again
editor.close() works just fine... I had an editor.submit() in the function as well, lol.
Good to hear to managed to resolve the problem :-)
As well as using
close()
the user should also be able to hitesc
to trigger the same close action.Allan