Skip to content

success not working after enable is called #1171

@Speedy2k

Description

@Speedy2k

When i initialise the x-editable, the success function is working properly!

$(doms[serial].vacTarget_x).editable({ success: function(response, newValue){ if (newValue > 30) { newValue = 30; } if(newValue >= 0 && newValue <= 30){ doSend({"serial":serial, "vacTarget":newValue}); } } });

When a particular situation happen i need to deactivate the x-editable! I do so like this:

$(doms[serial].vacTarget_x).editable('disable');

And this is working properly, but when i need to reenable the x-editable i do it like this:

$(doms[serial].vacTarget_x).editable('enable');

But them, the x-editable restart to be editable, but the success funtion is never called again!

What i do wrong ?

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