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
This commit is contained in:
Corban-Lee Jones 2024-01-22 11:33:15 +00:00
parent 863f5cf6ec
commit c32eb91d03

View File

@ -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();