Double clicking on the ajax editing textarea causes the ajaxedit() to run again deleteing whatever changes have been made and reloading the content from the DB.
Ways of fixing:
- Remove the onDblClick attrib from the element being eddited in ajaxEdit() and then add it again in ajaxSave().
- Add a onDblClick attrib to the text area that would absorb the double click and do nothing.
- Use eventlisteners in the first place which is the proper way to do it...