Skip to content

Double click with ajax editing deletes edits #7

@AltruistEnterprises

Description

@AltruistEnterprises

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions