Revision 9a2c4821
Von Sven Schöling vor mehr als 9 Jahren hinzugefügt
js/kivi.js | ||
---|---|---|
kivi.PartPicker($(elt));
|
||
});
|
||
|
||
if (ns.ProjectPicker)
|
||
ns.run_once_for('input.project_autocomplete', 'project_picker', function(elt) {
|
||
kivi.ProjectPicker($(elt));
|
||
});
|
||
|
||
if (ns.CustomerVendorPicker)
|
||
ns.run_once_for('input.customer_vendor_autocomplete', 'customer_vendor_picker', function(elt) {
|
||
kivi.CustomerVendorPicker($(elt));
|
templates/webpages/project/test_page.html | ||
---|---|---|
|
||
<br>
|
||
[% L.project_picker('project_id', '', style='width: 600px') %] text<br>
|
||
|
||
Runtime test:<br>
|
||
<div id='runtime_picker'>'
|
||
|
||
<script>
|
||
$(function() {
|
||
$('#runtime_picker').html('[% L.project_picker("project2_id") %]');
|
||
kivi.reinit_widgets();
|
||
})
|
||
</script>
|
||
|
Auch abrufbar als: Unified diff
Project: Picker in reinit_widgets registriert