This commit is contained in:
@@ -137,7 +137,7 @@ function buscadorMenuCaudi() {
|
||||
|
||||
let tickBar = 0;
|
||||
let input = $('#' + idTxtMaster);
|
||||
let BuscarMenu =function() {
|
||||
let BuscarMenu = function () {
|
||||
tickBar = tickBar + 1;
|
||||
tickBarnew = tickBar;
|
||||
|
||||
@@ -263,7 +263,7 @@ setswitch = function () {
|
||||
var label;
|
||||
var labeltext = ' ';
|
||||
if ($($(this).find('label')).html()) {
|
||||
labeltext = $($(this).find('label')).html()
|
||||
labeltext = $($(this).find('label')).html();
|
||||
}
|
||||
label = '<label for="' + mdcheckbox.attr("id") + '" > <span></span><span class="check"></span><span class="box"></span>' + labeltext + '</label>';
|
||||
label = $(label);
|
||||
@@ -281,7 +281,7 @@ setswitch = function () {
|
||||
var label;
|
||||
var labeltext = ' ';
|
||||
if ($($(this).find('label')).html()) {
|
||||
labeltext = $($(this).find('label')).html()
|
||||
labeltext = $($(this).find('label')).html();
|
||||
}
|
||||
label = '<label for="' + mdcheckbox.attr("id") + '" > <span></span><span class="check"></span><span class="box"></span>' + labeltext + '</label>';
|
||||
label = $(label);
|
||||
@@ -321,8 +321,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 < 100) { widthGral = 100; }
|
||||
if (heightGral < 100) { heightGral = 100; }
|
||||
|
||||
widthGral = Tthis.parent().parent().width();
|
||||
Tthis.removeClass('ADSCROLLER2');
|
||||
@@ -377,7 +377,7 @@ function ADScroller2() {
|
||||
for (var i = 0; i < txx1.length; i++) {
|
||||
tr1 = $(txx1[i]).closest('tr');
|
||||
td1 = $(txx1[i]).closest('td');
|
||||
tr1.append(td1)
|
||||
tr1.append(td1);
|
||||
var hr1 = tr1.outerHeight();
|
||||
var hr2 = $(txx2[i]).closest('tr').outerHeight();
|
||||
if (hr1 > hr2) {
|
||||
@@ -393,7 +393,7 @@ function ADScroller2() {
|
||||
|
||||
|
||||
|
||||
var contenedor = $('<div class="ADSContainer" style="width:' + widthGral + 'px;height:' + heightGral + 'px;"></div>')
|
||||
var contenedor = $('<div class="ADSContainer" style="width:' + widthGral + 'px;height:' + heightGral + 'px;"></div>');
|
||||
var divheader = $('<div style="width:' + widthGral + 'px;"></div>');
|
||||
var divcenter = $('<div style="width:' + widthGral + 'px;"></div>');
|
||||
var divheader1 = $('<div class="AdsCEll" ></div>');
|
||||
@@ -431,10 +431,34 @@ function ADScroller2() {
|
||||
divcenter.append(divcenterbody);
|
||||
divbodyScroll = $('<div class="ADSCroll" style="width:' + (widthGral - anchoc1) + 'px;height:' + (heightGral - altoc1 + 20) + 'px;"></div>').append(Tthis);
|
||||
divcenterbody.append(divbodyScroll);
|
||||
divbodyScroll.scroll(function () {
|
||||
divheaderScroll.scrollLeft($(this).scrollLeft())
|
||||
divcolsScroll.scrollTop($(this).scrollTop())
|
||||
|
||||
let fncScroll = function (obj, $this, divheaderScroll, idx) {
|
||||
if (idx) {
|
||||
divheaderScroll.scrollLeft($this.scrollLeft());
|
||||
}
|
||||
obj.scrollTop($this.scrollTop());
|
||||
};
|
||||
divbodyScroll.mouseover(function () {
|
||||
divbodyScroll.scroll(function () { fncScroll(divcolsScroll, divbodyScroll, divheaderScroll, true); });
|
||||
});
|
||||
divcolsScroll.mouseover(function () {
|
||||
divcolsScroll.scroll(function () { fncScroll(divbodyScroll, divcolsScroll, divheaderScroll, false); });
|
||||
});
|
||||
divbodyScroll.mouseleave(function () {
|
||||
divbodyScroll.unbind('scroll');
|
||||
});
|
||||
divcolsScroll.mouseleave(function () {
|
||||
divcolsScroll.unbind('scroll');
|
||||
});
|
||||
let sizeoftablefunc = function () {
|
||||
let sizetable = Tthis.outerHeight();
|
||||
if (sizetable < divbodyScroll.height()) {
|
||||
sizetable = sizetable + 20;
|
||||
divcolsScroll.css('height', sizetable);
|
||||
divbodyScroll.css('height', sizetable);
|
||||
contenedor.css('width', sizetable + altoc1);
|
||||
}
|
||||
};
|
||||
$(window).resize(function () {
|
||||
var widthGral = $(window).width() - WidthMenos;
|
||||
/*console.log(widthGral);*/
|
||||
@@ -443,23 +467,25 @@ function ADScroller2() {
|
||||
/* console.log(widthGral);*/
|
||||
var heightGral = $(window).height() - HeightMenos;
|
||||
if (Heightfijo > 0) { heightGral = Heightfijo; }
|
||||
if (widthGral < 100) { widthGral = 100 }
|
||||
if (heightGral < 100) { heightGral = 100 }
|
||||
if (widthGral < 100) { widthGral = 100; }
|
||||
if (heightGral < 100) { heightGral = 100; }
|
||||
contenedor.css('width', widthGral);
|
||||
divheader.css('width', widthGral);
|
||||
divcenter.css('width', widthGral);
|
||||
divheaderScroll.css('width', (widthGral - anchoc1));
|
||||
divcolsScroll.css('height', (heightGral - altoc1));
|
||||
divcolsScroll.css('height', (heightGral - altoc1+20));
|
||||
divbodyScroll.css('width', (widthGral - anchoc1));
|
||||
divbodyScroll.css('height', (heightGral - altoc1 + 20));
|
||||
setTimeout(sizeoftablefunc, 100);
|
||||
});
|
||||
|
||||
$('table#ADCol' + Tid + ' tr').hover(
|
||||
function () { $('table#' + Tid + ' tr:nth-child(' + ($(this).index() + 1) + ')').addClass('hover') },
|
||||
function () { $('table#' + Tid + ' tr:nth-child(' + ($(this).index() + 1) + ')').removeClass('hover') });
|
||||
function () { $('table#' + Tid + ' tr:nth-child(' + ($(this).index() + 1) + ')').addClass('hover');},
|
||||
function () { $('table#' + Tid + ' tr:nth-child(' + ($(this).index() + 1) + ')').removeClass('hover');});
|
||||
$('table#' + Tid + ' tr').hover(
|
||||
function () { $('table#ADCol' + Tid + ' tr:nth-child(' + ($(this).index() + 1) + ')').addClass('hover') },
|
||||
function () { $('table#ADCol' + Tid + ' tr:nth-child(' + ($(this).index() + 1) + ')').removeClass('hover') });
|
||||
function () { $('table#ADCol' + Tid + ' tr:nth-child(' + ($(this).index() + 1) + ')').addClass('hover');},
|
||||
function () { $('table#ADCol' + Tid + ' tr:nth-child(' + ($(this).index() + 1) + ')').removeClass('hover'); });
|
||||
setTimeout(sizeoftablefunc, 100);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
@@ -1817,7 +1843,7 @@ jQuery(document).ready(function () {
|
||||
DataTablePaginatorScroll();
|
||||
DataTablePaginatorScroll2();
|
||||
loadAdDropzone();
|
||||
clonsbuttons();
|
||||
clonsbuttons();
|
||||
ADScroller2();
|
||||
//setTimeout(ADScroller2, 500);
|
||||
$('body').removeClass('page-portlet-fullscreen');
|
||||
@@ -1853,7 +1879,7 @@ jQuery(document).ready(function () {
|
||||
|
||||
let showhideRows = function () {
|
||||
usuariotext = input.val();
|
||||
|
||||
|
||||
let strusuario = usuariotext.length > 0 ? ':contains("' + usuariotext + '")' : '';// td:nth-child(2)
|
||||
$this.find('tr.items').attr('hide', '1');//oculto todos
|
||||
$this.find('tr.items' + strusuario).attr('hide', '');//muestro los que tienen filtro
|
||||
|
||||
Reference in New Issue
Block a user