From: leon Date: Tue, 6 Dec 2022 08:28:45 +0000 (+0800) Subject: Roo/bootstrap/Table.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=a9c987f2419f56aadffbf48f3ad85071436a18bd Roo/bootstrap/Table.js roojs-bootstrap.js roojs-bootstrap-debug.js --- diff --git a/Roo/bootstrap/Table.js b/Roo/bootstrap/Table.js index 3d0c6e77d0..86275758de 100644 --- a/Roo/bootstrap/Table.js +++ b/Roo/bootstrap/Table.js @@ -962,9 +962,6 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component, { } } - Roo.log("FOOTER COLUMNS"); - Roo.log(this); - if(!this.footerShow && this.footerColumns) { var tr = { diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 0f81d3e7c7..c9c1c92a3f 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -10039,9 +10039,6 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component, { } } - Roo.log("FOOTER COLUMNS"); - Roo.log(this); - if(!this.footerShow && this.footerColumns) { var tr = { diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index 5f31ea2d22..2651e2c0be 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -427,7 +427,7 @@ var c={tag:'th',cls:'x-hcol-'+i,style:'',html:cm.getColumnHeader(i)};var D=cm.ge ]}]};return A;},onLoad:function(){this.clear();var A=this;var cm=this.cm;var ds=this.store;Roo.each(this.el.select('thead th.sortable',true).elements,function(e){e.select('i',true).removeClass(['fa-arrow-up','fa-arrow-down']);if(A.store.sortInfo){if(e.hasClass('sortable')&&e.attr('sort')==A.store.sortInfo.field&&A.store.sortInfo.direction.toUpperCase()=='ASC'){e.select('i',true).addClass(['fa-arrow-up']); }if(e.hasClass('sortable')&&e.attr('sort')==A.store.sortInfo.field&&A.store.sortInfo.direction.toUpperCase()=='DESC'){e.select('i',true).addClass(['fa-arrow-down']);}}});var B=this.bodyEl;if(ds.getCount()>0){ds.data.each(function(d,G){var H=this.renderRow(cm,ds,G); B.createChild(H);var I=this;if(H.cellObjects.length){Roo.each(H.cellObjects,function(r){I.renderCellObject(r);})}},this);}else if(this.empty_results.length){this.el.mask(this.empty_results,'no-spinner');}var C=this.el.select('tfoot',true).first();if(this.footerShow&&!this.footerColumns&&this.auto_hide_footer&&this.mainFoot){this.mainFoot.setVisibilityMode(Roo.Element.DISPLAY).hide(); -var D=this.ds.getTotalCount();if(this.footer.pageSize tr',true).elements; if(typeof(D[B])!='undefined'){bt.removeChild(D[B].dom);}if(C!==true){this.fireEvent("rowremoved",this,B,A);}},onAdd:function(ds,A,B){var bt=this.bodyEl.dom;for(var i=0;i