From b545e664faee207d101019fdd067d21bd3c2c682 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Thu, 6 Sep 2007 22:10:33 +0200 Subject: [PATCH] Fix minor ergonomy issues concerning the groups and the medals pages Signed-off-by: Florent Bruneau --- templates/profile/deco.tpl | 1 + templates/profile/groups.tpl | 14 +++++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/templates/profile/deco.tpl b/templates/profile/deco.tpl index 87ca768..79d0433 100644 --- a/templates/profile/deco.tpl +++ b/templates/profile/deco.tpl @@ -80,6 +80,7 @@ function add() function remove(id) { $("#medal_" + id).remove(); + update(); } {/literal} diff --git a/templates/profile/groups.tpl b/templates/profile/groups.tpl index cf31e16..db3563f 100644 --- a/templates/profile/groups.tpl +++ b/templates/profile/groups.tpl @@ -53,6 +53,7 @@ function remove(cat, id) { $('#' + cat + '_' + id).remove(); + update(cat); } function add(cat) @@ -65,13 +66,16 @@ + ' ' + ' ' + ' ' - + text + + '
' + + text + + '
' + ' ' + ' cross' + ' ' + ' ' + ''; $('#' + cat).after(html); + update(cat); } //]]> @@ -118,7 +122,9 @@ - {$text} +
+ {$text} +
{icon name="cross" title="Supprimer ce binet"} @@ -139,7 +145,9 @@ - {$text} +
+ {$text} +
{icon name="cross" title="Supprimer ce groupe X"} -- 2.1.4