Datatables and jeditable plugin issue/question

Datatables and jeditable plugin issue/question

12Bo12Bo Posts: 10Questions: 0Answers: 0
edited February 2012 in General
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.

Replies

  • 12Bo12Bo Posts: 10Questions: 0Answers: 0
    edited February 2012
    In case anyone else is experiencing an issue like this make sure that you are not overriding the dataTable.jeditable defaults (as in the example below).

    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.
This discussion has been closed.