luci-base: ui.js: fix function declaration in nested statement
authorAnton Kikin <a.kikin@tano-systems.com>
Sat, 23 May 2020 23:12:20 +0000 (02:12 +0300)
committerJo-Philipp Wich <jo@mein.io>
Sun, 24 May 2020 16:25:00 +0000 (18:25 +0200)
commit515bd927da7798bbac08e741dbe0b0f908af2a9b
tree50ae42154a5db80dc5d8fbe50746d535eca6656a
parentc7a1693de50c547c7d9fc05030156b6a02ee6f9a
luci-base: ui.js: fix function declaration in nested statement

Fix "SyntaxError: Strict mode does not allow function declarations
in a lexically nested statement" error that may occur in some old
browsers (detected on QtWebKit 5.212).

Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
(cherry picked from commit c00d0d9473803eec3248f0f6d7f3404923c80514)
modules/luci-base/htdocs/luci-static/resources/ui.js