在单击“重置搜索值” X
时,页面将被重定向到未定义的url,此时仅应清除结果
我只能在重新加载页面之前从jquery.jqgrid.min.js进行调试
a(".clearsearchclass", j).click(function() {
alert("hello");
var c = a(this).parents("tr:first"),
e = parseInt(a("td.ui-search-oper", c).attr("colindex"), 10),
g = a.extend({}, d.p.colModel[e].searchoptions || {}),
h = g.defaultValue ? g.defaultValue : "";
"select" === d.p.colModel[e].stype ? h ? a("td.ui-search-input select", c).val(h) : a("td.ui-search-input select", c)[0].selectedIndex = 0 : a("td.ui-search-input input", c).val(h),
b.autosearch === !0 && f()
}),
this.p.filterToolbar = !0,
this.triggerToolbar = f,
this.clearToolbar = g,
this.toggleToolbar = h