Browse Source

Fix typo of reorder-columns

zhixin 8 years ago
parent
commit
9351cd1300

+ 1 - 1
src/extensions/reorder-columns/bootstrap-table-reorder-columns.js

@@ -141,7 +141,7 @@
                     }
                     }
                 }
                 }
 
 
-                for (var i = 0; i < ths.length; i++ ) {
+                for (var i = 0; i < this.length; i++ ) {
                     columnIndex = that.fieldsColumnsIndex[ths[i]];
                     columnIndex = that.fieldsColumnsIndex[ths[i]];
                     if (columnIndex !== -1) {
                     if (columnIndex !== -1) {
                         that.columns[columnIndex].fieldIndex = i;
                         that.columns[columnIndex].fieldIndex = i;