This commit is contained in:
@@ -76,6 +76,30 @@ function FiltrarTabla(idtxt, idtable, idcontador) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function FiltrarTablaFreezcol(idtxt, idtable, idcontador) {
|
||||
if ($('' + idtxt).val() == '') { $('div.ADSCroll:not(.RHeader) table' + idtable + ' tr').css('display', ''); }
|
||||
else {
|
||||
let idxlist = [];
|
||||
$('div.ADSCroll:not(.RHeader) table' + idtable + ' tr:contains("' + $('' + idtxt).val() + '")').each(function () { let idx = $(this).index(); idxlist.push(idx) });
|
||||
|
||||
idxlist = idxlist.filter((x, i, a) => a.indexOf(x) == i)
|
||||
$('div.ADSCroll:not(.RHeader) table' + idtable + ' tr:not(.ADtr):not(.SearchADHeader):not(.ADSRow):not(.Titulos)').each(function () {
|
||||
let _tthis = $(this);
|
||||
let idx = _tthis.index();
|
||||
if (idxlist.includes(idx)) {
|
||||
_tthis.css('display', '');
|
||||
} else {
|
||||
_tthis.css('display', 'none');
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
if ($('' + idcontador).length > 0) {
|
||||
$('' + idcontador).html('(' + $('div.ADSCroll:not(.RHeader) ' + idtable + ' tr:not(.ADtr):not(.ADSRow):not(.SearchADHeader):visible').length + '/' + $('div.ADSCroll:not(.RHeader) ' + idtable + ' tr:not(.ADtr):not(.ADSRow):not(.SearchADHeader)').length + ')');
|
||||
}
|
||||
}
|
||||
|
||||
function clonsbuttons() {
|
||||
var copiasdelete = $('.clonehbutton_copy');
|
||||
if (copiasdelete) {
|
||||
@@ -321,8 +345,8 @@ function ADScroller2() {
|
||||
var widthGral = $(document).width() - WidthMenos;
|
||||
var heightGral = $(window).height() - HeightMenos;
|
||||
if (Heightfijo > 0) { heightGral = Heightfijo; }
|
||||
if (widthGral < 100) { widthGral = 100; }
|
||||
if (heightGral < 100) { heightGral = 100; }
|
||||
if (widthGral < 300) { widthGral = 300; }
|
||||
if (heightGral < 300) { heightGral =300; }
|
||||
|
||||
widthGral = Tthis.parent().parent().width();
|
||||
Tthis.removeClass('ADSCROLLER2');
|
||||
@@ -420,7 +444,7 @@ function ADScroller2() {
|
||||
|
||||
var anchoc1 = divheader1.outerWidth();
|
||||
var altoc1 = divheader1.outerHeight() + 15;
|
||||
divheaderScroll = $('<div class="ADSCroll" style="width:' + (widthGral - anchoc1) + 'px;"></div>').append(THeader2);
|
||||
divheaderScroll = $('<div class="ADSCroll RHeader" style="width:' + (widthGral - anchoc1) + 'px;"></div>').append(THeader2);
|
||||
divheader2.append(divheaderScroll);
|
||||
|
||||
contenedor.append(divcenter);
|
||||
@@ -459,24 +483,29 @@ function ADScroller2() {
|
||||
contenedor.css('width', sizetable + altoc1);
|
||||
}
|
||||
};
|
||||
$(window).resize(function () {
|
||||
let resizefncscroller = function () {
|
||||
|
||||
var widthGral = $(window).width() - WidthMenos;
|
||||
/*console.log(widthGral);*/
|
||||
contenedor.css('width', 1);
|
||||
widthGral = Tthis.parent().parent().parent().parent().parent().width();
|
||||
/* console.log(widthGral);*/
|
||||
var heightGral = $(window).height() - HeightMenos;
|
||||
//console.log(heightGral);
|
||||
if (Heightfijo > 0) { heightGral = Heightfijo; }
|
||||
if (widthGral < 100) { widthGral = 100; }
|
||||
if (heightGral < 100) { heightGral = 100; }
|
||||
if (widthGral < 300) { widthGral = 300; }
|
||||
if (heightGral < 300) { heightGral = 300; }
|
||||
contenedor.css('width', widthGral);
|
||||
divheader.css('width', widthGral);
|
||||
divcenter.css('width', widthGral);
|
||||
divheaderScroll.css('width', (widthGral - anchoc1));
|
||||
divcolsScroll.css('height', (heightGral - altoc1+20));
|
||||
divcolsScroll.css('height', (heightGral - altoc1 + 20));
|
||||
divbodyScroll.css('width', (widthGral - anchoc1));
|
||||
divbodyScroll.css('height', (heightGral - altoc1 + 20));
|
||||
setTimeout(sizeoftablefunc, 100);
|
||||
};
|
||||
$(window).resize(function () {
|
||||
setTimeout(resizefncscroller, 50);
|
||||
setTimeout(sizeoftablefunc, 150);
|
||||
});
|
||||
|
||||
$('table#ADCol' + Tid + ' tr').hover(
|
||||
@@ -731,12 +760,13 @@ function loadadscroll() {
|
||||
if (height < 200) {
|
||||
height = 200;
|
||||
}
|
||||
TThis.data('height', height)
|
||||
TThis.data('height', height);
|
||||
}
|
||||
//ADSCROLLER2
|
||||
|
||||
var colVisibles = isNaN(Number(TThis.data('cols'))) ? 0 : Number(TThis.data('cols'));
|
||||
if (colVisibles > 0) {
|
||||
if ((Number(TThis.data('heighterror'))) && !(Number(TThis.data('heightmenos')))) { TThis.data('heightmenos', TThis.data('heighterror'));}
|
||||
TThis.removeClass("ScrollAD");
|
||||
TThis.addClass("ADSCROLLER2");
|
||||
} else {
|
||||
@@ -1913,7 +1943,6 @@ jQuery(document).ready(function () {
|
||||
}
|
||||
});
|
||||
ADSReady();
|
||||
|
||||
}
|
||||
if (("Notification" in window)) {
|
||||
if (Notification.permission !== 'denied') {
|
||||
|
||||
Reference in New Issue
Block a user