diff options
author | Malfurious <m@lfurio.us> | 2021-09-27 19:29:31 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2021-09-27 19:29:31 -0400 |
commit | 0d14a7f784caea3064181e80ea8c8d06c6c912a9 (patch) | |
tree | 32285f13ff9642f19dcfbd96b33b902bf2bf689f | |
parent | 12c7230cf6bcdd7d38bd5752ed27b10d2c1f177f (diff) | |
download | scrott-0d14a7f784caea3064181e80ea8c8d06c6c912a9.tar.gz scrott-0d14a7f784caea3064181e80ea8c8d06c6c912a9.zip |
Initially scroll auto modal window to bottom
QoL enhancement when posting updates to a ticket. Since the page
reloads and has to open the ticket modal again, scrolling to the bottom
automatically preserves the view and makes follow-up actions easier.
Signed-off-by: Malfurious <m@lfurio.us>
-rw-r--r-- | app/view/stdpage.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/view/stdpage.php b/app/view/stdpage.php index 90e25d8..6ec7297 100644 --- a/app/view/stdpage.php +++ b/app/view/stdpage.php @@ -149,6 +149,7 @@ require_once "view/settings.php"; <script type="text/javascript"> $(window).on('load', function () { $("<?=getAutoModal()?>").modal("show"); + $("<?=getAutoModal()?>").animate({ scrollTop: $("<?=getAutoModal()?> .modal-dialog").height() }, 0); }); </script> <?php } ?> |