summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-05-02 23:52:36 +0200
committerJo-Philipp Wich <jo@mein.io>2020-05-02 23:53:03 +0200
commit4df3a90b3d638e18b9607a5332033df7ceb0ec55 (patch)
treedae0716a3a68a8c7582b9500590f0c98434344a5 /modules/luci-base/htdocs/luci-static/resources
parente3ef463ccdd7d32eef1717203bd872272c57793d (diff)
luci-base: ui.js: reset scroll position when opening modal overlay
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static/resources')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/ui.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js
index 11c48daae..c206e02af 100644
--- a/modules/luci-base/htdocs/luci-static/resources/ui.js
+++ b/modules/luci-base/htdocs/luci-static/resources/ui.js
@@ -3132,6 +3132,7 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ {
dom.append(dlg, children);
document.body.classList.add('modal-overlay-active');
+ modalDiv.scrollTop = 0;
return dlg;
},