ソースを参照

Merge pull request #27 from wenzhixin/master

Update my repo
Dennis Hernández 10 年 前
コミット
1ae1d5097d

+ 7 - 5
docs/_i18n/en/extensions/keyevents.md

@@ -15,8 +15,10 @@ Use Plugin: [bootstrap-table-keyevents](https://github.com/wenzhixin/bootstrap-t
 * type: Boolean
 * description:
 True to enable the key events. The key event list is:
-    * S/s: It will be focused the search textbox if it is enabled.
-    * R/r: It will refresh the table if the showRefresh option is enabled.
-    * T/t: It will toggle the table view if the showToggle option is enabled.
-    * P/p: It will fires the pagination switch if the showPaginationSwitch is enabled.
-* default: `true`
+    * s: It will be focused the search textbox if it is enabled.
+    * r: It will refresh the table if the showRefresh option is enabled.
+    * t: It will toggle the table view if the showToggle option is enabled.
+    * p: It will fires the pagination switch if the showPaginationSwitch is enabled.
+    * left: It will go to prev page if the pagination is true.
+    * right: It will go to next page if the pagination is true.
+* default: `false`

+ 7 - 5
docs/_i18n/es/extensions/keyevents.md

@@ -15,8 +15,10 @@ Use Plugin: [bootstrap-table-keyevents](https://github.com/wenzhixin/bootstrap-t
 * type: Boolean
 * description:
 True to enable the key events. The key event list is:
-    * S/s: It will be focused the search textbox if it is enabled.
-    * R/r: It will refresh the table if the showRefresh option is enabled.
-    * T/t: It will toggle the table view if the showToggle option is enabled.
-    * P/p: It will fires the pagination switch if the showPaginationSwitch is enabled.
-* default: `true`
+    * s: It will be focused the search textbox if it is enabled.
+    * r: It will refresh the table if the showRefresh option is enabled.
+    * t: It will toggle the table view if the showToggle option is enabled.
+    * p: It will fires the pagination switch if the showPaginationSwitch is enabled.
+    * left: It will go to prev page if the pagination is true.
+    * right: It will go to next page if the pagination is true.
+* default: `false`

+ 7 - 5
docs/_i18n/zh-cn/extensions/keyevents.md

@@ -15,8 +15,10 @@ Use Plugin: [bootstrap-table-keyevents](https://github.com/wenzhixin/bootstrap-t
 * type: Boolean
 * description:
 True to enable the key events. The key event list is:
-    * S/s: It will be focused the search textbox if it is enabled.
-    * R/r: It will refresh the table if the showRefresh option is enabled.
-    * T/t: It will toggle the table view if the showToggle option is enabled.
-    * P/p: It will fires the pagination switch if the showPaginationSwitch is enabled.
-* default: `true`
+    * s: It will be focused the search textbox if it is enabled.
+    * r: It will refresh the table if the showRefresh option is enabled.
+    * t: It will toggle the table view if the showToggle option is enabled.
+    * p: It will fires the pagination switch if the showPaginationSwitch is enabled.
+    * left: It will go to prev page if the pagination is true.
+    * right: It will go to next page if the pagination is true.
+* default: `false`

+ 2 - 2
src/extensions/cookie/bootstrap-table-cookie.js

@@ -199,7 +199,7 @@
         _onSearch.apply(this, Array.prototype.slice.apply(arguments));
 
         setCookie(this, idsStateSaveList.searchText, this.searchText);
-    }
+    };
 
     BootstrapTable.prototype.deleteCookie = function (cookieName) {
         if ((cookieName === '') || (!cookieEnabled())) {
@@ -207,5 +207,5 @@
         }
 
         deleteCookie(idsStateSaveList[cookieName]);
-    }
+    };
 })(jQuery);