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

Hide message boxes if needed (#1660)

parent d273b771
...@@ -30,7 +30,7 @@ translatePage = (lang) -> ...@@ -30,7 +30,7 @@ translatePage = (lang) ->
$("[trmsg]").each -> $("[trmsg]").each ->
$(this).text translate "PE#{$(this).attr 'trmsg'}" $(this).text translate "PE#{$(this).attr 'trmsg'}"
msg = translate "PE#{$(this).attr 'trmsg'}" msg = translate "PE#{$(this).attr 'trmsg'}"
if msg.match /_null_/ if msg.match /_hide_/
$(this).parent().hide() $(this).parent().hide()
$("[trplaceholder]").each -> $("[trplaceholder]").each ->
$(this).attr 'placeholder', translate($(this).attr('trplaceholder')) $(this).attr 'placeholder', translate($(this).attr('trplaceholder'))
......
...@@ -40,7 +40,7 @@ LemonLDAP::NG Portal jQuery scripts ...@@ -40,7 +40,7 @@ LemonLDAP::NG Portal jQuery scripts
var msg; var msg;
$(this).text(translate("PE" + ($(this).attr('trmsg')))); $(this).text(translate("PE" + ($(this).attr('trmsg'))));
msg = translate("PE" + ($(this).attr('trmsg'))); msg = translate("PE" + ($(this).attr('trmsg')));
if (msg.match(/_null_/)) { if (msg.match(/_hide_/)) {
return $(this).parent().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