summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-05-24 17:04:35 +0200
committerGitHub <noreply@github.com>2020-05-24 17:04:35 +0200
commitedeb146eb0d22430625a77e8557b8d16eedad759 (patch)
tree721403103a3830159ddcc95b587dccd10d84e0ff /modules/luci-base
parent62ed4e6e402e06d0ce44f8d0b9a260720fa68aa1 (diff)
parentc00d0d9473803eec3248f0f6d7f3404923c80514 (diff)
Merge pull request #4092 from tano-systems/pr/20200524-luci-base-fix-nested
luci-base: ui.js: fix function declaration in nested statement
Diffstat (limited to 'modules/luci-base')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/ui.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js
index 1f9a436f13..a6598355d6 100644
--- a/modules/luci-base/htdocs/luci-static/resources/ui.js
+++ b/modules/luci-base/htdocs/luci-static/resources/ui.js
@@ -1176,7 +1176,7 @@ var UIDropdown = UIElement.extend(/** @lends LuCI.ui.Dropdown.prototype */ {
ul.style.maxHeight = (vpHeight * 0.5) + 'px';
ul.style.WebkitOverflowScrolling = 'touch';
- function getScrollParent(element) {
+ var getScrollParent = function(element) {
var parent = element,
style = getComputedStyle(element),
excludeStaticParent = (style.position === 'absolute');