Roo/bootstrap/Table.js
authorEdward <edward@roojs.com>
Wed, 25 Jul 2018 05:25:42 +0000 (13:25 +0800)
committerEdward <edward@roojs.com>
Wed, 25 Jul 2018 05:25:42 +0000 (13:25 +0800)
Roo/bootstrap/Table.js

index ea63dbe..e7f8b3b 100644 (file)
@@ -1146,13 +1146,14 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component,  {
         var thSelector = 'roo-bootstrap-thead-col-' + colIndex;
         var tdSelector = 'roo-bootstrap-tbody-col-' + colIndex;
         
-        this.css.updateRule(this.tdSelector+this.idToCssName(cid), "display", "");
-        this.css.updateRule(this.splitSelector+this.idToCssName(cid), "display", "");
+        this.css.updateRule(thSelector, "display", "");
+        this.css.updateRule(tdSelector, "display", "");
+        
+        if(hidden){
+            this.css.updateRule(thSelector, "display", "none");
+            this.css.updateRule(tdSelector, "display", "none");
+        }
         
-        /*
-        this.onHeaderChange();
-        this.onLoad();
-        */
     }
     
 });