vitalets / x-editable

In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
http://vitalets.github.io/x-editable
MIT License
6.51k stars 1.72k forks source link

success not working after enable is called #1171

Open Speedy2k opened 3 years ago

Speedy2k commented 3 years ago

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 ?