Merge pull request #4092 from tano-systems/pr/20200524-luci-base-fix-nested
luci-base: ui.js: fix function declaration in nested statement
This commit is contained in:
commit
edeb146eb0
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue