Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f3017a41

Von Niklas Schmidt vor 4 Tagen hinzugefügt

  • ID f3017a4118ab27ab027de107f2cdfcb176a2375c
  • Vorgänger 7c01022c
  • Nachfolger 44fff8c6

DeliveryOrder:StockDialog js: argument close_dialog eingeführt

Unterschiede anzeigen:

js/kivi.DeliveryOrder.js
145 145
    $.post("controller.pl", data, kivi.eval_json_result);
146 146
  };
147 147

  
148
  ns.save_updated_stock = function() {
148
  ns.save_updated_stock = function(close_dialog) {
149 149
    // stock information is saved in DOM as a yaml dump.
150 150
    // we don't want to do this in javascript so we do a tiny roundtrip to the backend
151 151

  
......
178 178
      (data) => {
179 179
        $("#" + row + " .data-stock-info").val(data.stock_info);
180 180
        $("#" + row + " .data-stock-qty").text(data.stock_qty)
181
        $("#stock_in_out_dialog").dialog("close");
181
        if (close_dialog) {
182
          $("#stock_in_out_dialog").dialog("close");
183
        }
182 184
      }
183 185
    );
184 186
  };

Auch abrufbar als: Unified diff