Open Speedy2k opened 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 ?
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 ?