Revision a84a030e
Von Bernd Bleßmann vor fast 9 Jahren hinzugefügt
js/kivi.SalesPurchase.js | ||
---|---|---|
26 | 26 |
if (params.element) { |
27 | 27 |
$container.data('element', params.element); |
28 | 28 |
} |
29 |
if (params.set_function) { |
|
30 |
$container.data('setFunction', params.set_function); |
|
31 |
} |
|
29 | 32 |
|
30 | 33 |
$edit.val(params.default_longdescription); |
31 | 34 |
|
... | ... | |
50 | 53 |
}; |
51 | 54 |
|
52 | 55 |
this.set_longdescription = function() { |
53 |
$('#popup_edit_longdescription_input_container') |
|
54 |
.data('element') |
|
55 |
.val( $('#popup_edit_longdescription_input').val() ); |
|
56 |
|
|
56 |
if ($('#popup_edit_longdescription_input_container').data('setFunction')) { |
|
57 |
$('#popup_edit_longdescription_input_container').data('setFunction')($('#popup_edit_longdescription_input').val()); |
|
58 |
} else { |
|
59 |
$('#popup_edit_longdescription_input_container') |
|
60 |
.data('element') |
|
61 |
.val( $('#popup_edit_longdescription_input').val() ); |
|
62 |
} |
|
57 | 63 |
$('#edit_longdescription_dialog').dialog('close'); |
58 | 64 |
}; |
59 | 65 |
|
Auch abrufbar als: Unified diff
kivi.SalesPurchase.edit_longdescription: callback zum Setzen der Beschreibung angeben können