summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2021-09-27 19:29:31 -0400
committerMalfurious <m@lfurio.us>2021-09-27 19:29:31 -0400
commit0d14a7f784caea3064181e80ea8c8d06c6c912a9 (patch)
tree32285f13ff9642f19dcfbd96b33b902bf2bf689f /app
parent12c7230cf6bcdd7d38bd5752ed27b10d2c1f177f (diff)
downloadscrott-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>
Diffstat (limited to 'app')
-rw-r--r--app/view/stdpage.php1
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 } ?>