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:
parent
863f5cf6ec
commit
c32eb91d03
@ -17,6 +17,8 @@ $(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);
|
||||||
|
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case "content":
|
case "content":
|
||||||
$("#ticketsContainer .none-found").hide();
|
$("#ticketsContainer .none-found").hide();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user