亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

Jqgrid -- search button doesn't work with Jquery 1.8.0 or greater

發布時間:2020-06-06 02:51:12 來源:網絡 閱讀:685 作者:wander_bird 欄目:web開發

search functionality code:

$("#devicesTable").jqGrid('navGrid', '#pager', {
   del : false,
   add : false,
   edit : false,
   afterRefresh : function() {
       ...
   }

}, {}, {}, {}, {
   multipleSearch : true,
   multipleGroup : true,
   sopt : [ 'cn', 'eq' ]
});


I struggled with the same issue, and after I while I found the reason that jQgrid search does not work with jQuery 1.8.3:

In my jquery.jqGrid.js (v 4.3.3) i found this:

if($("#"+ $.jgrid.jqID(IDs.themodal)).html()!==null){

   showFilter($("#fbox_"+ $.jgrid.jqID(+$t.p.id)));

}

In jquery.jqGrid.min.js as follows:

if(null!==a("#"+a.jgrid.jqID(t.themodal)).html())d(a("#fbox_"+a.jgrid.jqID(+e.p.id)));


In my file it was on line 6863, but you may have to search for it, since my file may be a bit modified compared to the original.

The problem is that $([id]).html() evaluates to null in older jQuery versions, while in jQuery 1.8.0 it instead evaluates to undefined! Since (undefined !== null) is true and (null !== null) is false, the code does different things with different versions of jQuery.

What I did to fix it, and make it work with jQuery 1.8.0 was to change the comparator from !== to !=. This works since both (null != null) and (null != undefined) evaluates to true!

Hope this could be of help!


link to http://stackoverflow.com/questions/12199400/jqgrid-search-button-does-nothing


向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

邯郸县| 永宁县| 阿克苏市| 分宜县| 新和县| 璧山县| 库尔勒市| 雅江县| 隆昌县| 秦安县| 洛隆县| 大姚县| 通许县| 尚志市| 麦盖提县| 铁岭市| 从江县| 大丰市| 仪陇县| 桦川县| 吉木萨尔县| 濮阳市| 锦屏县| 甘谷县| 灵寿县| 盱眙县| 淮阳县| 清河县| 桐乡市| 会昌县| 梁平县| 达州市| 靖西县| 合川市| 凌云县| 铜陵市| 布尔津县| 屏东县| 梓潼县| 兴山县| 青冈县|