JQuery tablesorter pager plugin doesn't work properly with IE11 in Edge mode

后端 未结 4 1289
一个人的身影
一个人的身影 2021-02-07 05:16

If you are using the Tablesorter Jquery plugin with the pager add on the table will not display any of the data. The data is there but it is hidden.

I suspect the browse

4条回答
  •  盖世英雄少女心
    2021-02-07 05:52

    It seems that IE11 have a problem with his userAgent. A turnaround is to change clearTableBody function (working in jquery.tablesorter-2.0.3.js) like this :

    this.clearTableBody = function (table) {
        //if ($.browser.msie) {
            function empty() {
                while (this.firstChild) this.removeChild(this.firstChild);
            }
            empty.apply(table.tBodies[0]);
        //} else {
        //    table.tBodies[0].innerHTML = "";
        //}
    };
    

提交回复
热议问题