This commit is contained in:
JORGE LUIS CAUDILLO ESPARZA
2019-10-11 17:20:17 -07:00
parent 762781fea4
commit 95c8551414
12 changed files with 5036 additions and 4385 deletions

View File

@@ -1697,6 +1697,32 @@ function loadsortadscroll() {
});
}
var listaADScroller = [];
function saveposicionADScroller() {
$('.ADScroller-body>table').each(function () {
let _this = $(this);
let id = _this.attr("id");
let scrollleft = $(_this.parent()).scrollLeft();
let scrolltop = $(_this.parent()).scrollTop();
listaADScroller.push({ id: id, scrollleft: scrollleft, scrolltop: scrolltop })
});
}
function setposicionADScroller() {
setTimeout(
function () {
listaADScroller.forEach(function (_this) {
let id = _this.id;
let scrollleft = _this.scrollleft;
let scrolltop = _this.scrolltop;
$($('#' + id).parent()).scrollLeft(scrollleft);
$($('#' + id).parent().parent()).find('> .ADScroller-header').scrollLeft(scrollleft);
$($('#' + id).parent()).scrollTop(scrolltop);
});
}, 99);
}
function loaderinit() {
setTimeout(
@@ -1727,7 +1753,6 @@ jQuery(document).ready(function () {
setTimeout(loadadscroll, 10)
});
loadsortadscroll();
QuickSidebar.init();
@@ -1804,6 +1829,8 @@ jQuery(document).ready(function () {
prm.add_initializeRequest(function (s, e) {
objscollapse = $('.portlet-title .collapse').closest('.portlet[id]');
objsexpand = $('.portlet-title .expand').closest('.portlet[id]');
saveposicionADScroller();
loaderinit();
});
prm.add_endRequest(function (s, e) {
@@ -1816,6 +1843,7 @@ jQuery(document).ready(function () {
Metronic.initAjax();
loadjquerys();
loaderEnd();
setposicionADScroller();
error = false;
});
ADSSignalR();