From: Jo-Philipp Wich Date: Wed, 7 Jan 2015 20:29:57 +0000 (+0100) Subject: luci2.ui: properly hide alert message in initial state X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci2%2Fui.git;a=commitdiff_plain;h=09dc12ac96880de5dc2d995ce26668fb9c1ab6b6 luci2.ui: properly hide alert message in initial state Signed-off-by: Jo-Philipp Wich --- diff --git a/luci2/htdocs/luci2/ui.js b/luci2/htdocs/luci2/ui.js index 1fb9a49..81c52dc 100644 --- a/luci2/htdocs/luci2/ui.js +++ b/luci2/htdocs/luci2/ui.js @@ -390,9 +390,9 @@ } if (invalid) - state.form.find('.alert-message').show(); + state.form.find('.alert').show(); else - state.form.find('.alert-message').hide(); + state.form.find('.alert').hide(); L.ui.dialog(L.tr('Authorization Required'), state.form, { style: 'confirm',