Scrollbar updater
This commit is contained in:
parent
c32eb91d03
commit
62bd7de0be
@ -30,7 +30,10 @@
|
|||||||
var scrollables = $(".scrollable");
|
var scrollables = $(".scrollable");
|
||||||
if (scrollables.length > 0) {
|
if (scrollables.length > 0) {
|
||||||
scrollables.each(function(index, el) {
|
scrollables.each(function(index, el) {
|
||||||
new PerfectScrollbar(el);
|
var scrollbar = new PerfectScrollbar(el);
|
||||||
|
$(el).on("updateScrollbar", function() {
|
||||||
|
scrollbar.update();
|
||||||
|
})
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})();
|
})();
|
@ -18,6 +18,7 @@ $(document).ready(function() {
|
|||||||
function updateItemsState(state) {
|
function updateItemsState(state) {
|
||||||
console.debug(`updating items state to '${state}'`);
|
console.debug(`updating items state to '${state}'`);
|
||||||
$("#ticketsContainer").scrollTop(0);
|
$("#ticketsContainer").scrollTop(0);
|
||||||
|
$("#ticketsContainer").trigger("updateScrollbar");
|
||||||
|
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case "content":
|
case "content":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user