Fix for advance search with IE7.
authorStéphane Jacob <sj@m4x.org>
Sat, 24 Mar 2012 09:58:42 +0000 (10:58 +0100)
committerStéphane Jacob <sj@m4x.org>
Sat, 24 Mar 2012 09:58:42 +0000 (10:58 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
templates/deltaten/index.tpl
templates/search/adv.form.tpl

index a636caf..d7f52e9 100644 (file)
@@ -30,7 +30,7 @@
 <a id="deltaten"></a>
 
 <script type="text/javascript">//<![CDATA[
-  {literal}$(function() { load_advanced_search({{/literal}{foreach from=$smarty.request key=key item=item}"{$key}":"{$item}",{/foreach}{literal}}); });{/literal}
+  {literal}$(function() { load_advanced_search({{/literal}{foreach from=$smarty.request key=key item=item name="load"}"{$key}":"{$item}"{if not $smarty.foreach.load.last},{/if}{/foreach}{literal}}); });{/literal}
 //]]></script>
 
 <form id="recherche" action="deltaten/search" method="get" onsubmit="return cleanForm(this, 'deltaten/search')">
index 0a425a1..57c4d1f 100644 (file)
@@ -27,7 +27,7 @@
 {/if}
 
 <script type="text/javascript">//<![CDATA[
-  {literal}$(function() { load_advanced_search({{/literal}{foreach from=$smarty.request key=key item=item}"{$key}":"{$item}",{/foreach}{literal}}); });{/literal}
+  {literal}$(function() { load_advanced_search({{/literal}{foreach from=$smarty.request key=key item=item name="load"}"{$key}":"{$item}"{if not $smarty.foreach.load.last},{/if}{/foreach}{literal}}); });{/literal}
 //]]></script>
 
 <p class="center">[<a href="search">Revenir à la recherche simple</a>]</p>