Browse Source

Refs #424: fix this. undefined error.

zhixin 11 years ago
parent
commit
48a4481824
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/bootstrap-table.js

+ 2 - 1
src/bootstrap-table.js

@@ -747,13 +747,14 @@
     };
 
     BootstrapTable.prototype.initPagination = function () {
+        this.$pagination = this.$container.find('.fixed-table-pagination');
+
         if (!this.options.pagination) {
             this.$pagination.hide();
             return;
         } else {
             this.$pagination.show();
         }
-        this.$pagination = this.$container.find('.fixed-table-pagination');
 
         var that = this,
             html = [],