Adapts Xorg MLs and aliases handling to new mail chain.
[platal.git] / templates / events / form.tpl
index cbd8501..6f7aa84 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2010 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2011 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
@@ -32,8 +32,8 @@
 {if $smarty.request.promo_max}
 {assign var=promo_max value=$smarty.request.promo_max|smarty:nodefaults}
 {/if}
-{if $smarty.request.peremption}
-{assign var=peremption value=$smarty.request.peremption|smarty:nodefaults}
+{if $smarty.request.expiration}
+{assign var=expiration value=$smarty.request.expiration|smarty:nodefaults}
 {/if}
 {if $smarty.request.important}
 {assign var=important value=$smarty.request.important|smarty:nodefaults}
       document.getElementById('info').style.display = 'none';
     }
     var page  = 'events/preview?titre=' + encodeURIComponent(titre) + '&texte=' + encodeURIComponent(texte);
-    if (is_IE) {
-      {/literal}
-      page = "{$globals->baseurl}/" + page;
-      {literal}
-    }
-    Ajax.update_html('preview', page, null);
+    $('#preview').updateHtml(page);
     return false;
   }
   {/literal}
         Dernier jour d'affichage
       </td>
       <td>
-        {valid_date name="peremption" value=$peremption to=60}
+        {valid_date name="expiration" value=$expiration to=60}
       </td>
     </tr>
     {if $admin_evts}