|
@@ -203,9 +203,24 @@ function() {
|
|
|
d += "<td " + o + ">" + (null==c?"":c) + "</td>"
|
|
|
}),
|
|
|
d += "</tr>"
|
|
|
- }), r.html(d), i.resetTd(n, !1)) : (d = '<tr emptyTemplate><td colspan="' + $('th[th-visible="visible"]', n).length + '">' + (i.emptyTemplate || '<div class="gm-emptyTemplate">数据为空</div>') + "</td></tr>", l.totals = 0, r.html(d)),
|
|
|
+ }), r.html(d)
|
|
|
+ ,i.resetTd(n, !1)) : (d = '<tr emptyTemplate><td colspan="' + $('th[th-visible="visible"]', n).length + '">' + (i.emptyTemplate || '<div class="gm-emptyTemplate">数据为空</div>') + "</td></tr>", l.totals = 0, r.html(d)),
|
|
|
i.supportAjaxPage && (i.resetPageData(n, l[i.totalsKey]), i.checkMenuPageAction()),
|
|
|
- "function" == typeof e ? e() : ""
|
|
|
+ "function" == typeof e ? e() : "";
|
|
|
+ if(i.supportCheckbox) {
|
|
|
+ $(r).children().each(function(){
|
|
|
+ var trObj = this;
|
|
|
+ var inputChk = $(trObj).find("input[type='checkbox']");
|
|
|
+ $(trObj).click(function(){
|
|
|
+ var chkFlg = $(inputChk).prop("checked");
|
|
|
+ $(inputChk).prop("checked", !chkFlg);
|
|
|
+ });
|
|
|
+ $(inputChk).parent().click(function(){
|
|
|
+ window.event.cancelBubble=true;
|
|
|
+ });
|
|
|
+
|
|
|
+ });
|
|
|
+ };
|
|
|
}
|
|
|
var i = this,
|
|
|
n = $('table[grid-manager="' + i.gridManagerName + '"]'),
|