jQuery 1.6.3 checkboxes issue in inline edit in jQgrid

前端 未结 1 451
你的背包
你的背包 2020-12-21 13:16

I just updated jQuery from 1.6.2 to 1.6.3 and find out that inline edit not working properly after that change.

I have check boxes and if I untick checkbox(value

相关标签:
1条回答
  • 2020-12-21 14:13

    Thank you for the question! In one project for my main customer the working with checkbox is very critical. So I reproduced immediately the problem. My first bug fix is the following:

    one should change the line 133 (in the version 4.1.2) of the grid.inlinedit.js or the line 8283 of the jquery.jqGrid.src.js from

    tmp[nm]=  $("input",this).attr("checked") ? cbv[0] : cbv[1];
    

    to

    tmp[nm]=  $("input",this)[0].checked ? cbv[0] : cbv[1];
    

    I think one should examine the jqGrid code for more places where are worked with checkboxes, but the quick fix described above at least solve the problem in inline editing which you described. I will examine the problem more carefully later and will post my suggestions to trirand (to the developer of jqGrid).

    0 讨论(0)
提交回复
热议问题