Scrollbar updater
This commit is contained in:
parent
c32eb91d03
commit
62bd7de0be
@ -30,7 +30,10 @@
|
||||
var scrollables = $(".scrollable");
|
||||
if (scrollables.length > 0) {
|
||||
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) {
|
||||
console.debug(`updating items state to '${state}'`);
|
||||
$("#ticketsContainer").scrollTop(0);
|
||||
$("#ticketsContainer").trigger("updateScrollbar");
|
||||
|
||||
switch (state) {
|
||||
case "content":
|
||||
|
Loading…
x
Reference in New Issue
Block a user