Merge remote branch 'origin/xorg/1.0.2/master' into xorg/master
[platal.git] / templates / emails / alias.tpl
index a6253ee..2760d6a 100644 (file)
   </h1>
 
 {if $actuel}
-  {javascript name=ajax}
   {if $user->hasProfile()}
   <table class="flags">
     <tr>
       <td class="orange">
         <input type="checkbox" {if $mail_public}checked="checked"{/if}
-            onclick="
-                Ajax.update_html(null,'{$globals->baseurl}/emails/alias/set/'+(this.checked?'public':'private')+'?token={xsrf_token}');
-                document.getElementById('mail_public').innerHTML = (this.checked?'public et apparaît donc sur ta fiche':'privé et n\'apparaît nulle part sur le site') + '.';
+            onclick="$.xget('{$globals->baseurl}/emails/alias/set/'+(this.checked?'public':'private')+'?token={xsrf_token}');
+                $('#mail_public').html((this.checked?'public et apparaît donc sur ta fiche':'privé et n\'apparaît nulle part sur le site') + '.');
             " />
       </td>
       <td>
                 <input type="checkbox" name="public" {if $mail_public}checked="checked"{/if} id="pub_add"/>
               </td>
               <td class="texte">
-                <label for="pub_add">adresse publique (apparaît sur ta fiche).
+                <label for="pub_add">adresse publique (apparaît sur ta fiche).</label>
               </td>
              </tr>
           </table>