From fd58ac2072e83c7c8ebbe740290288a78bb599aa Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Tue, 25 Oct 2011 00:01:36 +0200 Subject: [PATCH] Fixes private names edition for ax perms. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- htdocs/javascript/profile.js | 7 +++++-- templates/profile/general.private_name.tpl | 2 +- templates/profile/general.public_names.tpl | 4 ++-- templates/profile/general.tpl | 4 ++-- 4 files changed, 10 insertions(+), 7 deletions(-) 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}