function remove(cat, id)
{
$('#' + cat + '_' + id).remove();
+ update(cat);
}
function add(cat)
+ ' <input type="hidden" name="' + cat + '[' + id + ']" value="' + text + '" />'
+ ' </td>'
+ ' <td>'
- + text
+ + ' <div style="float: left; width: 70%">'
+ + text
+ + ' </div>'
+ ' <a href="javascript:remove(\'' + cat + '\', ' + id + ')">'
+ ' <img src="images/icons/cross.gif" alt="cross" title="Supprimer ce groupe" />'
+ ' </a>'
+ ' </td>'
+ '</tr>';
$('#' + cat).after(html);
+ update(cat);
}
//]]>
<input type="hidden" name="binets[{$bid}]" value="{$text}" />
</td>
<td>
- {$text}
+ <div style="float: left; width: 70%">
+ {$text}
+ </div>
<a href="javascript:remove('binets', {$bid})">{icon name="cross" title="Supprimer ce binet"}</a>
</td>
</tr>
<input type="hidden" name="groupesx[{$bid}]" value="{$text}" />
</td>
<td>
- {$text}
+ <div style="float: left; width: 70%">
+ {$text}
+ </div>
<a href="javascript:remove('groupesx', {$bid})">{icon name="cross" title="Supprimer ce groupe X"}</a>
</td>
</tr>