luci2.ui: properly hide alert message in initial state
[project/luci2/ui.git] / luci2 / htdocs / luci2 / ui.js
index 1fb9a49..81c52dc 100644 (file)
                        }
 
                        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',