Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 2e8dd1d8

Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt

  • ID 2e8dd1d85541033e1b4f5fe2f41da528e860c6e5
  • Vorgänger bdf33d88
  • Nachfolger 7502b084

Pflichtenheft Angebote/Aufträge: "Abbrechen" ohne AJAX-Call nur in JS

Unterschiede anzeigen:

js/requirement_spec.js
365 365
};
366 366

  
367 367
ns.standard_quotation_order_ajax_call = function(key, opt) {
368
  if ((key == 'cancel') && !confirm(kivi.t8('Do you really want to cancel?')))
368
  if (key == 'cancel') {
369
    if (confirm(kivi.t8('Do you really want to cancel?'))) {
370
      $('#quotations_and_orders').show();
371
      $('#quotations_and_orders_article_assignment,#quotations_and_orders_new,#quotations_and_orders_update').remove();
372
    }
369 373
    return true;
374
  }
370 375

  
371 376
  else if ((key == 'create') && $('#quotations_and_orders_form INPUT[name="sections[].order_part_id"]').filter(function(idx, elt) { return ($(elt).val() || '') == '' }).size()) {
372 377
    alert(kivi.t8('There is one or more sections for which no part has been assigned yet; therefore creating the new record is not possible yet.'));

Auch abrufbar als: Unified diff