Browse Source

use $.inArray instead of indexOf

ioctaptceb 10 years ago
parent
commit
0ea2af7b70
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/extensions/filter-control/bootstrap-table-filter-control.js

+ 1 - 1
src/extensions/filter-control/bootstrap-table-filter-control.js

@@ -119,7 +119,7 @@
                     cookie = cookie.split(".").pop();
                 }
 
-                if (cookies.indexOf(cookie) === -1) {
+                if ($.inArray(cookie, cookies) === -1) {
                     cookies.push(cookie);
                 }
             });