Show More
@@ -21,7 +21,7 b'' | |||
|
21 | 21 | tal:attributes="label item.label"> |
|
22 | 22 | <option tal:repeat="(value, description) item.options" |
|
23 | 23 | tal:attributes=" |
|
24 | selected (multiple and value in list(map(unicode, cstruct)) or value == list(map(unicode, cstruct))) and 'selected'; | |
|
24 | selected python:field.widget.get_select_value(cstruct, value); | |
|
25 | 25 | class css_class; |
|
26 | 26 | label field.widget.long_label_generator and description; |
|
27 | 27 | value value" |
@@ -29,7 +29,7 b'' | |||
|
29 | 29 | </optgroup> |
|
30 | 30 | <option tal:condition="not isinstance(item, optgroup_class)" |
|
31 | 31 | tal:attributes=" |
|
32 | selected (multiple and item[0] in list(map(unicode, cstruct)) or item[0] == unicode(cstruct)) and 'selected'; | |
|
32 | selected python:field.widget.get_select_value(cstruct, item[0]); | |
|
33 | 33 | class css_class; |
|
34 | 34 | value item[0]">${item[1]}</option> |
|
35 | 35 | </tal:loop> |
@@ -37,7 +37,7 b'' | |||
|
37 | 37 | |
|
38 | 38 | <script type="text/javascript"> |
|
39 | 39 | deform.addCallback( |
|
40 |
'${ |
|
|
40 | '${oid}', | |
|
41 | 41 | function(oid) { |
|
42 | 42 | $('#' + oid).select2({ |
|
43 | 43 | containerCssClass: 'form-control drop-menu', |
General Comments 0
You need to be logged in to leave comments.
Login now