This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
var IHAVEALLTHEPOWER = false;
|
||||
var objscollapse = null;
|
||||
var objsexpand = null;
|
||||
var adscrollerposition =[];
|
||||
conf = {
|
||||
error: console.error,
|
||||
info: console.info,
|
||||
@@ -503,10 +504,10 @@ function ADScroller2() {
|
||||
divbodyScroll.css('width', (widthGral - anchoc1));
|
||||
divbodyScroll.css('height', (heightGral - altoc1 + 20));
|
||||
};
|
||||
$(window).resize(function () {
|
||||
setTimeout(resizefncscroller, 50);
|
||||
setTimeout(sizeoftablefunc, 150);
|
||||
});
|
||||
//$(window).resize(function () {
|
||||
// setTimeout(resizefncscroller, 50);
|
||||
// setTimeout(sizeoftablefunc, 150);
|
||||
//});
|
||||
|
||||
$('table#ADCol' + Tid + ' tr').hover(
|
||||
function () { $('table#' + Tid + ' tr:nth-child(' + ($(this).index() + 1) + ')').addClass('hover');},
|
||||
@@ -516,6 +517,16 @@ function ADScroller2() {
|
||||
function () { $('table#ADCol' + Tid + ' tr:nth-child(' + ($(this).index() + 1) + ')').removeClass('hover'); });
|
||||
setTimeout(sizeoftablefunc, 100);
|
||||
|
||||
|
||||
let found = adscrollerposition.find(element => element.id = 'C_Tab_TabNominas_GvNominas');
|
||||
if (found != null) {
|
||||
|
||||
divheaderScroll.scrollLeft(found.scrollLeft);
|
||||
divbodyScroll.scrollLeft(found.scrollLeft);
|
||||
divcolsScroll.scrollTop(found.scrollTop);
|
||||
divbodyScroll.scrollTop(found.scrollTop);
|
||||
}
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
console.log("ADSCROLLER2 Error:" + err.message);
|
||||
@@ -1975,7 +1986,12 @@ jQuery(document).ready(function () {
|
||||
// let id = $(this).attr('id');
|
||||
// $(this).val(CKEDITOR.instances[id].getData());
|
||||
//});
|
||||
|
||||
adscrollerposition = [];
|
||||
$('.ADSContainer .AdsBody .ADSCroll table').each(function () {
|
||||
let _this = $(this);
|
||||
let _thisScroll = _this.parent();
|
||||
adscrollerposition.push({ id: _this.attr('id'), scrollLeft: _thisScroll.scrollLeft(), scrollTop: _thisScroll.scrollTop() });
|
||||
});
|
||||
saveposicionADScroller();
|
||||
loaderinit();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user