Goes to the payment that was sorted.
authorStéphane Jacob <sj@m4x.org>
Wed, 17 Nov 2010 12:15:34 +0000 (13:15 +0100)
committerStéphane Jacob <sj@m4x.org>
Wed, 17 Nov 2010 12:15:34 +0000 (13:15 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/payment.php
templates/payment/xnet.tpl

index 014bf70..f6669bd 100644 (file)
@@ -522,6 +522,7 @@ class PaymentModule extends PLModule
                 }
                 $page->assign('order_id', $order_id);
                 $page->assign('order', $order);
+                $page->assign('anchor', 'legend_' . $order_id);
             } else {
                 $order_id = false;
                 $ordering = '';
index 0d82b54..635e4d1 100644 (file)
 {*                                                                        *}
 {**************************************************************************}
 
+{if t($anchor)}
+{literal}
+<script type="text/javascript">
+//<![CDATA[
+$(document).ready(function() {
+{/literal}
+  location.hash = "#{$anchor}";
+{literal}
+});
+// ]]>
+</script>
+{/literal}
+{/if}
+
 <h1>{$asso->nom}&nbsp;: Gestion des télépaiements </h1>
 
 <p class="descr">
@@ -29,7 +43,7 @@ Voici la liste des paiements en ligne possible pour le groupe {$asso->nom}&nbsp;
 {foreach from=$titles item=p}
 
 <fieldset>
-<legend><a href="{$platal->ns}payment/{$p.id}">{icon name=money title="Télépaiement"}{$p.text}</a></legend>
+<legend id="legend_{$p.id}"><a href="{$platal->ns}payment/{$p.id}">{icon name=money title="Télépaiement"}{$p.text}</a></legend>
 
 {if $event[$p.id]}
 {assign var='ev' value=$event[$p.id]}