From 8a11e6766709a7bcf598b2f8f1d2cee735cd4aed Mon Sep 17 00:00:00 2001 From: leon Date: Wed, 30 Nov 2022 15:55:26 +0800 Subject: [PATCH] Roo/bootstrap/Table.js roojs-bootstrap.js roojs-bootstrap-debug.js --- Roo/bootstrap/Table.js | 2 +- roojs-bootstrap-debug.js | 2 +- roojs-bootstrap.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Roo/bootstrap/Table.js b/Roo/bootstrap/Table.js index 9d164157ec..7f76247d14 100644 --- a/Roo/bootstrap/Table.js +++ b/Roo/bootstrap/Table.js @@ -986,7 +986,7 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component, { } - tfoot.createChild(row); + tfoot.createChild(tr); } Roo.each(this.el.select('tbody td', true).elements, function(e){ diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 49b7888863..b625840941 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -10063,7 +10063,7 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component, { } - tfoot.createChild(row); + tfoot.createChild(tr); } Roo.each(this.el.select('tbody td', true).elements, function(e){ diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index e2d0d8d340..b11c175120 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -428,7 +428,7 @@ var c={tag:'th',cls:'x-hcol-'+i,style:'',html:cm.getColumnHeader(i)};var D=cm.ge }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.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