Browse Source

Fix #1: add refresh method.

zhixin 11 years ago
parent
commit
4be461eb79
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/bootstrap-table.js

+ 6 - 1
src/bootstrap-table.js

@@ -769,6 +769,10 @@
         this.$loading.hide();
         this.$loading.hide();
     };
     };
 
 
+    BootstrapTable.prototype.refresh = function() {
+        this.initServer();
+    };
+
 
 
     // BOOTSTRAP TABLE PLUGIN DEFINITION
     // BOOTSTRAP TABLE PLUGIN DEFINITION
     // =======================
     // =======================
@@ -779,7 +783,8 @@
                 'load', 'append', 'mergeCells',
                 'load', 'append', 'mergeCells',
                 'checkAll', 'uncheckAll',
                 'checkAll', 'uncheckAll',
                 'destroy', 'resetView',
                 'destroy', 'resetView',
-                'showLoading', 'hideLoading'
+                'showLoading', 'hideLoading',
+                'refresh'
             ],
             ],
             value;
             value;