ソースを参照

Refs #424: fix this. undefined error.

zhixin 11 年 前
コミット
48a4481824
1 ファイル変更2 行追加1 行削除
  1. 2 1
      src/bootstrap-table.js

+ 2 - 1
src/bootstrap-table.js

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