From: Pascal Corpet Date: Sun, 23 Mar 2008 21:30:21 +0000 (+0100) Subject: prevent ajax deletion of last active redirection X-Git-Tag: xorg/0.9.16~69 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=d4a9e308fe9d0292b5e44f32d33a80bb9be1a8ad;p=platal.git prevent ajax deletion of last active redirection --- diff --git a/templates/emails/redirect.tpl b/templates/emails/redirect.tpl index 6277330..102564c 100644 --- a/templates/emails/redirect.tpl +++ b/templates/emails/redirect.tpl @@ -81,8 +81,10 @@ var remove = $(".active_email:checked"); if (remove.length <= 1) { remove.attr("disabled", "disabled"); + remove.parent('td').parent('tr').children('td').children('.remove_email').hide(); } else { remove.removeAttr("disabled"); + $('.remove_email').show(); } } @@ -98,6 +100,7 @@ $.get(link.href, {},function() { $('tr[@id=line_' + email.replace('@', '_at_') + ']').remove(); showRemove(); + activeEnable(); }); } return false; @@ -172,7 +175,6 @@ {/foreach} -
@@ -184,6 +186,7 @@ +
{if $panne}