Browse Source

Fix #2099

Example: http://jsfiddle.net/djhvscf/e3nk137y/5415/
Dennis Hernández 9 years ago
parent
commit
d1d1244ee2
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/extensions/cookie/bootstrap-table-cookie.js

+ 6 - 1
src/extensions/cookie/bootstrap-table-cookie.js

@@ -1,7 +1,7 @@
 /**
  * @author: Dennis Hernández
  * @webSite: http://djhvscf.github.io/Blog
- * @version: v1.2.0
+ * @version: v1.2.1
  *
  * @update zhixin wen <wenzhixin2010@gmail.com>
  */
@@ -219,6 +219,11 @@
             });
         }
         _init.apply(this, Array.prototype.slice.apply(arguments));
+
+        $.extend($.fn.bootstrapTable.utils, {
+            setCookie: setCookie,
+            getCookie: getCookie
+        });
     };
 
     BootstrapTable.prototype.initTable = function () {