Good morning all,
I don't know if it's me but I noticed some pretty weird behavior, when I fetch the data via ajax and I made a plugin call: $ ('. Scroll-user-table'). JScrollPane ( {
showArrows: true,
hijackInternalLinks: true,
autoReset: true,
horizontalArrowPositions: 'after',
});
After there is a jump when I try to click on an element of the content taken via ajax
It works when I click for the second time
script:
function siteScrollPage() {
$('.scroll-user-table').jScrollPane({
showArrows: true,
hijackInternalLinks: true,
autoReinitialise: true,
horizontalArrowPositions: 'after',
});
};
loader.removeClass('hidden');
$.ajax({
url: '',
type: 'GET',
data: {loaded: 'loaded'},
})
.done(function(response) {
firstLoaded = false;
$('#add-loaded-invoice').html(response);
})
.fail(function(response) {
})
.always(function(response) {
siteScrollPage();
siteUserPaginate();
siteFirstTimeLoadedInvoiceLivraison();
loader.addClass('hidden');
});
Good morning all,
I don't know if it's me but I noticed some pretty weird behavior, when I fetch the data via ajax and I made a plugin call: $ ('. Scroll-user-table'). JScrollPane ( {
showArrows: true,
hijackInternalLinks: true,
autoReset: true,
horizontalArrowPositions: 'after',
});
After there is a jump when I try to click on an element of the content taken via ajax
It works when I click for the second time
script: