luci-base: ui.js: fix function declaration in nested statement 4092/head
authorAnton Kikin <a.kikin@tano-systems.com>
Sat, 23 May 2020 23:12:20 +0000 (02:12 +0300)
committerAnton Kikin <a.kikin@tano-systems.com>
Sat, 23 May 2020 23:12:20 +0000 (02:12 +0300)
commitc00d0d9473803eec3248f0f6d7f3404923c80514
tree721403103a3830159ddcc95b587dccd10d84e0ff
parent62ed4e6e402e06d0ce44f8d0b9a260720fa68aa1
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>
modules/luci-base/htdocs/luci-static/resources/ui.js