From: Stéphane Jacob Date: Mon, 24 Oct 2011 22:01:36 +0000 (+0200) Subject: Fixes private names edition for ax perms. X-Git-Tag: xorg/1.1.4~61 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=fd58ac2072e83c7c8ebbe740290288a78bb599aa;p=platal.git Fixes private names edition for ax perms. Signed-off-by: Stéphane Jacob --- diff --git a/htdocs/javascript/profile.js b/htdocs/javascript/profile.js index 7152981..97de167 100644 --- a/htdocs/javascript/profile.js +++ b/htdocs/javascript/profile.js @@ -66,9 +66,12 @@ publicity['public'] = 2; // Names {{{1 -function toggleNamesAdvanced() +function toggleNamesAdvanced(togglePrivate) { - $('.names_advanced').toggle(); + $('.names_advanced_public').toggle(); + if (togglePrivate) { + $('.names_advanced_private').toggle(); + } } function addSearchName(isFemale) diff --git a/templates/profile/general.private_name.tpl b/templates/profile/general.private_name.tpl index 15dbeda..1f4b491 100644 --- a/templates/profile/general.private_name.tpl +++ b/templates/profile/general.private_name.tpl @@ -21,7 +21,7 @@ {**************************************************************************} {assign var=type value=$name.type} - + {icon name="flag_red" title="site privé"}{if !t($new_name)} {$other_names.$type}{else}