This commit is contained in:
@@ -823,6 +823,7 @@ ADSScroll = function (tablescroll) {
|
||||
tablefooter.attr('id', 'ADSF-' + tablescroll.attr('id'));
|
||||
let trWwidth = $('<tr class="trnopadding ADtr SearchADHeader"></tr>');
|
||||
let idTheader = tablescroll.data('tableheader');
|
||||
let scrollwidthrow = tablescroll.data('scrollwidthrow') ? tablescroll.data('scrollwidthrow') : "";
|
||||
let rowVisibles = isNaN(Number(tablescroll.data('rows'))) ? 1 : Number(tablescroll.data('rows'));
|
||||
let rowFooter = isNaN(Number(tablescroll.data('footer'))) ? 0 : Number(tablescroll.data('footer'));
|
||||
let heightBody = isNaN(Number(tablescroll.data('height'))) ? 200 : Number(tablescroll.data('height'));
|
||||
@@ -861,12 +862,21 @@ ADSScroll = function (tablescroll) {
|
||||
}
|
||||
}
|
||||
let firsttr = null;
|
||||
tablescroll.find('> tbody > tr,> thead > tr,> tr').each(function () {
|
||||
tablescroll.find('> tbody > tr' + scrollwidthrow + ',> thead > tr' + scrollwidthrow + ',> tr' + scrollwidthrow +'').each(function () {
|
||||
var retorno = false;
|
||||
firsttr = $(this);
|
||||
if (firsttr.find(' > td[colspan], > th[colspan]').length) { retorno = true; }
|
||||
return retorno;
|
||||
});
|
||||
if (firsttr == null) {
|
||||
tablescroll.find('> tbody > tr,> thead > tr,> tr').each(function () {
|
||||
var retorno = false;
|
||||
firsttr = $(this);
|
||||
if (firsttr.find(' > td[colspan], > th[colspan]').length) { retorno = true; }
|
||||
return retorno;
|
||||
});
|
||||
|
||||
}
|
||||
tablescroll.before(divcontainer);
|
||||
divcontainer.append(divheader);
|
||||
divcontainer.append(divbody);
|
||||
|
||||
Reference in New Issue
Block a user