浏览代码

Update bootstrap-table-filter-control.js

The collectBootstrapCookies funtion check only if cookie exist, but I'm using localstorage to store variable of the cookie plugin.
I've added to check localstorage.
manukieli 6 年之前
父节点
当前提交
68340facf6
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/extensions/filter-control/bootstrap-table-filter-control.js

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

@@ -192,8 +192,8 @@ const UtilsFilterControl = {
         }
         }
       })
       })
     }
     }
-    if (foundLocalStorage){
-      for(var i = 0; i < foundLocalStorage.length; i++) {
+    if (foundLocalStorage) {
+      for (var i = 0; i < foundLocalStorage.length; i++) {
         let cookie = foundLocalStorage.key(i)
         let cookie = foundLocalStorage.key(i)
         if (/./.test(cookie)) {
         if (/./.test(cookie)) {
           cookie = cookie.split('.').pop()
           cookie = cookie.split('.').pop()