jQgrid .clearsearchclass正在重新加载而不是清除搜索字段

时间:2019-04-16 14:06:42

标签: jquery jqgrid

Input search field

在单击“重置搜索值” 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

0 个答案:

没有答案