Revision 09bed31b
Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt
js/kivi.DispositionManager.js | ||
---|---|---|
1 | 1 |
namespace('kivi.DispositionManager', function(ns) { |
2 | 2 |
ns.sort_vendors = function() { |
3 |
ns.display_vendor_parts($('#vendor_id2').val()); |
|
4 |
$("tbody tr").each(function(index) { |
|
5 |
if ( index !== 0 ) { |
|
6 |
$row = $(this); |
|
7 |
if( $row.find("select[name='vendor_ids[]']").val() != $('#vendor_id2').val()) { |
|
8 |
$row.remove(); |
|
9 |
} |
|
3 |
ns.display_vendor_parts($('#vendor_id').val()); |
|
4 |
$("#basket_items tr").each(function(_index) { |
|
5 |
if( |
|
6 |
$(this).find("select[name='vendor_ids[]']").val() != $('#vendor_id').val() |
|
7 |
&& $('#vendor_id').val() != '' |
|
8 |
) { |
|
9 |
$(this).find("[name='ids[+]']").prop("checked", false); |
|
10 |
this.style.display = "none"; |
|
11 |
} else { |
|
12 |
this.style.removeProperty('display'); |
|
10 | 13 |
} |
11 | 14 |
}); |
12 | 15 |
} |
... | ... | |
49 | 52 |
return true; |
50 | 53 |
}; |
51 | 54 |
}); |
55 |
|
|
56 |
$(function() { |
|
57 |
$('#vendor_id').change('set_item:CustomerVendorPicker', function(_e,_o) { |
|
58 |
kivi.DispositionManager.sort_vendors(); |
|
59 |
}) |
|
60 |
}); |
Auch abrufbar als: Unified diff
DispositionManager: FIX: Wechsel Lieferanten im Einkaufswarenkorb