How to cancel an edit (using inline editor) without submitting form

How to cancel an edit (using inline editor) without submitting form

bap22bap22 Posts: 5Questions: 3Answers: 0

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.

Answers

  • bap22bap22 Posts: 5Questions: 3Answers: 0
    edited September 2014

    Never mind. I was doing something stupid...again

    editor.close() works just fine... I had an editor.submit() in the function as well, lol.

  • allanallan Posts: 61,665Questions: 1Answers: 10,096 Site admin

    Good to hear to managed to resolve the problem :-)

    As well as using close() the user should also be able to hit esc to trigger the same close action.

    Allan

This discussion has been closed.