Browse Source

Added the recommendation

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

+ 2 - 6
src/bootstrap-table.js

@@ -1420,12 +1420,8 @@
 		if (index === -1) {
 		if (index === -1) {
             return;
             return;
         }
         }
-
-        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');
-        }
+		
+		this.$selectItem.filter(sprintf('[data-index="%s"]', index)).parents('tr')[visible ? 'show' : 'hide']();
 	};
 	};
 
 
     // PUBLIC FUNCTION DEFINITION
     // PUBLIC FUNCTION DEFINITION