Revision f3017a41
Von Niklas Schmidt vor 4 Tagen hinzugefügt
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
DeliveryOrder:StockDialog js: argument close_dialog eingeführt