Merge branch 'xorg/1.0.2/master' into xorg/master
[platal.git] / templates / events / form.tpl
index cbd8501..b5e9bcb 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}
@@ -62,7 +62,7 @@
       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}