Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 1cc65ebc

Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt

  • ID 1cc65ebc086c1821dfcd08bcc97f8b6255dcec65
  • Vorgänger 90651b58
  • Nachfolger e142cf7d

Pflichtenhefte: Aktualisieren von Angeboten/Aufträgen

Unterschiede anzeigen:

js/requirement_spec.js
332 332
  var data = 'action=RequirementSpecOrder/' + key
333 333
           + '&' + $('#requirement_spec_id').serialize();
334 334

  
335
  if ((key == 'save_assignment') || (key == 'create'))
336
    data += '&' + $('#quotations_and_orders_article_assignment_form').serialize();
337
  else
338
    data += '&id=' + encodeURIComponent(ns.find_quotation_order_id(opt.$trigger));
335
  if ((key == 'save_assignment') || (key == 'create') || (key == 'do_update'))
336
    data += '&' + $('#quotations_and_orders_form').serialize();
337
  else if ((key == 'update') || (key == 'delete'))
338
    data += '&rs_order_id=' + encodeURIComponent(ns.find_quotation_order_id(opt.$trigger));
339 339

  
340 340
  // console.log("I would normally POST the following now:");
341 341
  // console.log(data);
......
354 354

  
355 355
ns.assign_order_part_id_to_all = function() {
356 356
  var order_part_id = $('#quoations_and_orders_order_id').val();
357
  $('#quotations_and_orders_article_assignment_form SELECT[name="sections[].order_part_id"]').each(function(idx, elt) {
357
  $('#quotations_and_orders_form SELECT[name="sections[].order_part_id"]').each(function(idx, elt) {
358 358
    $(elt).val(order_part_id);
359 359
  });
360 360
};
......
541 541
  $.contextMenu({
542 542
    selector: '.quotations-and-orders-new-context-menu',
543 543
    items:    $.extend({
544
        heading: { name: kivi.t8('Create new quotation/order'), className: 'context-menu-heading'    }
544
        heading: { name: kivi.t8('Create new quotation/order'), className: 'context-menu-heading'          }
545 545
      , create:  { name: kivi.t8('Create'), icon: "edit",  callback: ns.standard_quotation_order_ajax_call }
546 546
      , cancel:  { name: kivi.t8('Cancel'), icon: "close", callback: ns.standard_quotation_order_ajax_call }
547 547
    }, general_actions)
548 548
  });
549 549

  
550
  $.contextMenu({
551
    selector: '.quotations-and-orders-update-context-menu',
552
    items:    $.extend({
553
        heading:   { name: kivi.t8('Update quotation/order'), className: 'context-menu-heading'               }
554
      , do_update: { name: kivi.t8('Update'), icon: "update", callback: ns.standard_quotation_order_ajax_call }
555
      , cancel:    { name: kivi.t8('Cancel'), icon: "close",  callback: ns.standard_quotation_order_ajax_call }
556
    }, general_actions)
557
  });
558

  
550 559
  $.contextMenu({
551 560
    selector: '#content',
552 561
    items:    general_actions

Auch abrufbar als: Unified diff