Permalink
Browse files

fix multiselect checkbox behavior

  • Loading branch information...
1 parent 84a657c commit 48121b4a4a31d2654e4272cdab317c067a9dc62e Gregory Mostizky committed Jun 29, 2011
Showing with 2 additions and 4 deletions.
  1. +2 −4 js/grid.base.js
View
@@ -2267,12 +2267,10 @@ $.fn.jqGrid = function( pin ) {
} else {
$(ts).jqGrid("setSelection",ptr[0].id,true);
}
- } else {
- if(e[ts.p.multikey]) {
+ } else { if (e[ts.p.multikey]) {
$(ts).jqGrid("setSelection",ptr[0].id,true);
} else if(ts.p.multiselect && scb) {
- scb = $("#jqg_"+$.jgrid.jqID(ts.p.id)+"_"+ptr[0].id).attr("checked");
- $("#jqg_"+$.jgrid.jqID(ts.p.id)+"_"+ptr[0].id).attr("checked",!scb);
+ $(ts).jqGrid("setSelection",ptr[0].id,true);
}
}
if($.isFunction(ts.p.onCellSelect)) {

0 comments on commit 48121b4

Please sign in to comment.