浏览代码

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 = [],