Revision e1b64393
Von Frank Messerschmidt vor fast 8 Jahren hinzugefügt
templates/webpages/sepa/bank_transfer_edit.html | ||
---|---|---|
51 | 51 |
[%- IF show_post_payments_button %] |
52 | 52 |
<th class="listheading" colspan="[% IF vc == 'customer' %]6[% ELSE %]5[% END %]"> </th> |
53 | 53 |
<th class="listheading"> |
54 |
[% L.date_tag('set_all_execution_date', '', onchange='check_right_date_format(this); set_all_execution_date_fields(this);') %] |
|
54 |
[% L.date_tag('set_all_execution_date', '', onchange='check_right_date_format(this); set_all_execution_date_fields(this);' , onblur='check_right_date_format(this); set_all_execution_date_fields(this);') %]
|
|
55 | 55 |
</th> |
56 | 56 |
[%- ELSE %] |
57 | 57 |
<th class="listheading" colspan="4"> </th> |
... | ... | |
104 | 104 |
|
105 | 105 |
[%- IF show_post_payments_button %] |
106 | 106 |
<p> |
107 |
<input type="submit" class="submit" name="action_bank_update_list" value="[% 'Update' | $T8 %]"> |
|
107 | 108 |
<input type="submit" class="submit" name="action_bank_transfer_post_payments" value="[% 'Post payments' | $T8 %]"> |
108 | 109 |
</p> |
109 | 110 |
|
... | ... | |
145 | 146 |
|
146 | 147 |
<input type="hidden" name="vc" value="[% HTML.escape(vc) %]"> |
147 | 148 |
</form> |
149 |
<script> |
|
150 |
$(function() |
|
151 |
{ |
|
152 |
var submitActor = null; |
|
153 |
var $form = $( 'form' ); |
|
154 |
var $submitActors = $form.find( 'input[type=submit]' ); |
|
155 |
|
|
156 |
$form.submit( function( event ) |
|
157 |
{ |
|
158 |
if ( null === submitActor ) |
|
159 |
{ |
|
160 |
// If no actor is explicitly clicked, the browser will |
|
161 |
// automatically choose the first in source-order |
|
162 |
// so we do the same here |
|
163 |
submitActor = $submitActors[0]; |
|
164 |
} |
|
165 |
|
|
166 |
if (submitActor.name !== "action_bank_transfer_post_payments") |
|
167 |
return false; |
|
168 |
}); |
|
169 |
|
|
170 |
$submitActors.click( function( event ) |
|
171 |
{ |
|
172 |
submitActor = this; |
|
173 |
}); |
|
174 |
|
|
175 |
} ); |
|
176 |
|
|
177 |
|
|
178 |
</script> |
Auch abrufbar als: Unified diff
Zahlungsverkehr/Berichte/SEPA Anweisungen: Verbesserung Ausführungsdatum
- Einführen des Erneuernbutton welche vor den Zahlung buchen Button steht
- Einführen eines onblur (Feld verlassen) Eventhandler welcher das Datum akutalisiert
- Bei Enter im Datumsfeld wird nun nicht mehr das Formular gesendet, sondern vorher der Name der Schaltfläche
ausgewertet, somit werden keine falschen Datumsangaben mir übertragen
implementiert TICKET #4233