From 802f957d2240e882386678e671d1f55dfd8e56da Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Wed, 16 Sep 2020 17:36:14 +0100 Subject: [PATCH] fix scrolling on modals spawned by settings modal, fix getUsers cache closing the settings modal to immediately open another caused the 'modal-open' class on the body to get deleted, which meant scrolling stopped working inside them. Also fix mistake added to jfapi in last commit. --- data/templates/admin.html | 27 ++++++++++++++++++++++++--- jfapi.go | 3 +-- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/data/templates/admin.html b/data/templates/admin.html index 344f3e4..fed4ad9 100644 --- a/data/templates/admin.html +++ b/data/templates/admin.html @@ -136,6 +136,10 @@ .settingIcon { margin-left: 0.2rem; } + + body.modal-open { + overflow: hidden; + } Admin @@ -404,10 +408,23 @@