Browse Source

Added show/hide row

Dennis Hernández 10 years ago
parent
commit
fe197977b3
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/bootstrap-table.js

+ 3 - 2
src/bootstrap-table.js

@@ -1420,7 +1420,8 @@
 		if (index === -1) {
             return;
         }
-		if (visible) {
+
+        if (visible) {
 			this.$selectItem.filter(sprintf('[data-index="%s"]', index)).parents('tr').css('display', 'table-row');
 		} else {
 			this.$selectItem.filter(sprintf('[data-index="%s"]', index)).parents('tr').css('display', 'none');
@@ -1549,7 +1550,7 @@
     };
 	
 	BootstrapTable.prototype.showRow = function (index) {
-		this.toggleRow(index, true);
+        this.toggleRow(index, true);
 	};
 
 	BootstrapTable.prototype.hideRow = function (index) {