Skip to content
This repository was archived by the owner on Jul 29, 2022. It is now read-only.
This repository was archived by the owner on Jul 29, 2022. It is now read-only.

jeditable destroys user tooltips #241

@sronsiek

Description

@sronsiek

Description

jeditable version: 2.0.19

My data contains (valuable) tooltip info which is passed from the server.

To prevent jeditable from overwriting this (default set within jeditable = 'Click to edit'), I need to set the tooltip option to null or false.

But following an edit, my tooltips have disappeared.

Cause is a missing check before overwriting the tooltip at the end of in form.on('submit', function(e):

Changing this:

                    /* Show tooltip again. */
                    $(self).attr('title', settings.tooltip);
                    return false;

to:

                    /* Show tooltip again. */
                    if (settings.tooltip) {
                       $(self).attr('title', settings.tooltip);
                    }
                    return false;

fixes the issue.

Comment: I would think it more intuitive if there was no default set - so if the user
does not set a value, jeditable should not interfere with this attribute.

This was the behaviour in 1.7.3.

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