Revision 9a2c4821
Von Sven Schöling vor etwa 9 Jahren hinzugefügt
js/kivi.js | ||
---|---|---|
236 | 236 |
kivi.PartPicker($(elt)); |
237 | 237 |
}); |
238 | 238 |
|
239 |
if (ns.ProjectPicker) |
|
240 |
ns.run_once_for('input.project_autocomplete', 'project_picker', function(elt) { |
|
241 |
kivi.ProjectPicker($(elt)); |
|
242 |
}); |
|
243 |
|
|
239 | 244 |
if (ns.CustomerVendorPicker) |
240 | 245 |
ns.run_once_for('input.customer_vendor_autocomplete', 'customer_vendor_picker', function(elt) { |
241 | 246 |
kivi.CustomerVendorPicker($(elt)); |
templates/webpages/project/test_page.html | ||
---|---|---|
4 | 4 |
|
5 | 5 |
<br> |
6 | 6 |
[% L.project_picker('project_id', '', style='width: 600px') %] text<br> |
7 |
|
|
8 |
Runtime test:<br> |
|
9 |
<div id='runtime_picker'>' |
|
10 |
|
|
11 |
<script> |
|
12 |
$(function() { |
|
13 |
$('#runtime_picker').html('[% L.project_picker("project2_id") %]'); |
|
14 |
kivi.reinit_widgets(); |
|
15 |
}) |
|
16 |
</script> |
|
17 |
|
Auch abrufbar als: Unified diff
Project: Picker in reinit_widgets registriert