From c32eb91d03cb851378da71589f17329f6d05f15a Mon Sep 17 00:00:00 2001 From: Corban-Lee Jones Date: Mon, 22 Jan 2024 11:33:15 +0000 Subject: [PATCH] Reset Ticket Items Scrollbar on State Change #17 I've added a line in the updateItemsState function to reset the scrollbar to the top when the state changes. This fixes #17 --- apps/static/js/tickets.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/static/js/tickets.js b/apps/static/js/tickets.js index 575460e..da68ef2 100644 --- a/apps/static/js/tickets.js +++ b/apps/static/js/tickets.js @@ -17,6 +17,8 @@ $(document).ready(function() { function updateItemsState(state) { console.debug(`updating items state to '${state}'`); + $("#ticketsContainer").scrollTop(0); + switch (state) { case "content": $("#ticketsContainer .none-found").hide();