From 09dc12ac96880de5dc2d995ce26668fb9c1ab6b6 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 7 Jan 2015 21:29:57 +0100 Subject: [PATCH] luci2.ui: properly hide alert message in initial state Signed-off-by: Jo-Philipp Wich --- luci2/htdocs/luci2/ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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', -- 2.30.2