浏览代码

If in the correct position

If pagination is not enable the function has to exit immediately
Dennis Hernández 11 年之前
父节点
当前提交
6059e515d3
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/bootstrap-table.js

+ 3 - 3
src/bootstrap-table.js

@@ -729,11 +729,11 @@
     };
 
     BootstrapTable.prototype.initPagination = function () {
-        this.$pagination = this.$container.find('.fixed-table-pagination');
-
-        if (!this.options.pagination) {
+		if (!this.options.pagination) {
             return;
         }
+		this.$pagination = this.$container.find('.fixed-table-pagination');
+
         var that = this,
             html = [],
             i, from, to,