luci2.ui: properly hide alert message in initial state
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 7 Jan 2015 20:29:57 +0000 (21:29 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 7 Jan 2015 20:29:57 +0000 (21:29 +0100)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
luci2/htdocs/luci2/ui.js

index 1fb9a4947c0c8b4413ded5b4769a69c4893692a4..81c52dc950e61ebc0c8bb43e8d3c73dc0cbb689d 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',