Commit 47fb5334 authored by Christophe Maudoux's avatar Christophe Maudoux

Hide message boxes if needed (#1660)

parent d273b771
......@@ -30,7 +30,7 @@ translatePage = (lang) ->
$("[trmsg]").each ->
$(this).text translate "PE#{$(this).attr 'trmsg'}"
msg = translate "PE#{$(this).attr 'trmsg'}"
if msg.match /_null_/
if msg.match /_hide_/
$(this).parent().hide()
$("[trplaceholder]").each ->
$(this).attr 'placeholder', translate($(this).attr('trplaceholder'))
......
......@@ -40,7 +40,7 @@ LemonLDAP::NG Portal jQuery scripts
var msg;
$(this).text(translate("PE" + ($(this).attr('trmsg'))));
msg = translate("PE" + ($(this).attr('trmsg')));
if (msg.match(/_null_/)) {
if (msg.match(/_hide_/)) {
return $(this).parent().hide();
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment