Revision c383fc0b
Von Sven Schöling vor mehr als 9 Jahren hinzugefügt
js/kivi.PriceRule.js | ||
---|---|---|
15 | 15 |
}); |
16 | 16 |
} |
17 | 17 |
|
18 |
ns.on_change_filter_type = function() { |
|
19 |
var val = $('#price_rule_filter_type').val(); |
|
20 |
if (val == 'vendor') { |
|
21 |
$('#price_rule_filter_customer').data('customer_vendor_picker').set_item({}); |
|
22 |
$('#price_rule_filter_customer_tr').hide(); |
|
23 |
$('#price_rule_filter_vendor_tr').show(); |
|
24 |
} |
|
25 |
if (val == 'customer') { |
|
26 |
$('#price_rule_filter_vendor').data('customer_vendor_picker').set_item({}); |
|
27 |
$('#price_rule_filter_vendor_tr').hide(); |
|
28 |
$('#price_rule_filter_customer_tr').show(); |
|
29 |
} |
|
30 |
if (val == '') { |
|
31 |
$('#price_rule_filter_customer_tr').show(); |
|
32 |
$('#price_rule_filter_vendor_tr').show(); |
|
33 |
} |
|
34 |
} |
|
35 |
|
|
18 | 36 |
$(function() { |
19 | 37 |
$('#price_rule_item_add').click(function() { |
20 | 38 |
ns.add_new_row($('#price_rules_empty_item_select').val()); |
... | ... | |
23 | 41 |
$(this).closest('div').remove(); |
24 | 42 |
}) |
25 | 43 |
$('#price_rule_price_type_help').click(ns.open_price_type_help_popup); |
44 |
$('#price_rule_filter_type').change(ns.on_change_filter_type); |
|
26 | 45 |
}); |
27 | 46 |
}); |
Auch abrufbar als: Unified diff
PriceRule: Ein menüeintrag und Typen frei filterbar