Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e0720382

Von Thomas Heck vor fast 11 Jahren hinzugefügt

  • ID e07203821fb6db4d54d0396a0d14d1dbef94dbff
  • Vorgänger 579f5842
  • Nachfolger 094307a8

Neues Konto: keine Abfrage wegen geänderten Kontodaten stellen

fixt #2319

Unterschiede anzeigen:

templates/webpages/am/edit_accounts.html
276 276
</fieldset>
277 277
<hr size="3" noshade>
278 278

  
279
<script type="text/javascript">
280
function callback_save() {
281
  var prev_desc = "[% description | html %]";
282
  var prev_accno = "[% accno | html %]";
283
  var cur_desc = $("#description").val();
284
  var cur_accno = $("#accno").val();
279
[% IF ( id ) %]
280
  <script type="text/javascript">
281
  function callback_save() {
282
    var prev_desc = "[% description | html %]";
283
    var prev_accno = "[% accno | html %]";
284
    var cur_desc = $("#description").val();
285
    var cur_accno = $("#accno").val();
285 286

  
286
  if ( prev_desc != cur_desc || prev_accno != cur_accno )
287
    return confirm(kivi.t8("Do you want to set the account number \"#1\" to \"#2\" and the name \"#3\" to \"#4\"?", [prev_accno, cur_accno, prev_desc, cur_desc]));
288
  else
289
    return true;
290
}
291
</script>
287
    if ( prev_desc != cur_desc || prev_accno != cur_accno )
288
      return confirm(kivi.t8("Do you want to set the account number \"#1\" to \"#2\" and the name \"#3\" to \"#4\"?", [prev_accno, cur_accno, prev_desc, cur_desc]));
289
    else
290
      return true;
291
  }
292
  </script>
293
[% END %]

Auch abrufbar als: Unified diff