Datatables and jeditable plugin issue/question
Datatables and jeditable plugin issue/question
I am using DoubleClick as the event that triggers the jEditable plugin. However, if I am working on a table cell and the input/select box is showing and I DoubleClick on a different cell the old cell and the new cell will trigger the onBlur event hiding the input/select elements on both cells (instead of just the old cell). Basically, when a jEditable cell is enabled and I DoubleClick on a new cell I only want the old cell to close not the new one.
I hope I have explained this well enough to understand.
12Bo.
I hope I have explained this well enough to understand.
12Bo.
This discussion has been closed.
Replies
Make sure that you don't override the default onBlur: 'cancel' parameter in the jeditable.js file. I have commented out the 'onBlur' call below so you know exactly what I am referencing.
[code]
oTable.makeEditable({
sUpdateURL: "ajax/update",
"aoColumns":[
{
type: 'select',
//onblur: 'submit',
data: "{'':'', '1':'1', '2.':'2.', '3':'3', '4':'4'}",
cssclass: 'jeditable'
},
...
...
...
],
});
[/code]
If you don't override the 'onBlur' event then everything should work as intended.