|
|
@ -479,12 +479,22 @@ const GRID = {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
countChecked : function(checkboxElement){
|
|
|
|
countChecked : function(checkboxElement){
|
|
|
|
|
|
|
|
|
|
|
|
var parentEl = $(checkboxElement).parent()[0];
|
|
|
|
var parentEl = $(checkboxElement).parent()[0];
|
|
|
|
var tr = $(checkboxElement).parents("tr");
|
|
|
|
var tr = $(checkboxElement).parents("tr");
|
|
|
|
var siblings = tr.find("TD");
|
|
|
|
|
|
|
|
var checkboxColIndex = siblings.index(parentEl);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var table = $(checkboxElement).parents("table");
|
|
|
|
var table = $(checkboxElement).parents("table");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var checkboxColIndex = null;
|
|
|
|
|
|
|
|
if(parentEl.tagName == "TH"){
|
|
|
|
|
|
|
|
var siblings = tr.find("TH");
|
|
|
|
|
|
|
|
checkboxColIndex = siblings.index(parentEl);
|
|
|
|
|
|
|
|
} else if(parentEl.tagName == "TD"){
|
|
|
|
|
|
|
|
var siblings = tr.find("TD");
|
|
|
|
|
|
|
|
checkboxColIndex = siblings.index(parentEl);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var tbody = table.find("tbody");
|
|
|
|
var tbody = table.find("tbody");
|
|
|
|
var trs = tbody.find("tr");
|
|
|
|
var trs = tbody.find("tr");
|
|
|
|
|
|
|
|
|
|
|
|