Browse Source

If in the correct position

If pagination is not enable the function has to exit immediately
Dennis Hernández 11 years ago
parent
commit
6059e515d3
1 changed files with 3 additions and 3 deletions
  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,