Commit 953f25964e68058574af2d371ffb83fbdc1e9aad
1 parent
e88ea85f
Selected value for selector_c objects is compared with the value and no more wit…
…h the displayed label.
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
calexium_lib/web/CXM_making_a_web_site.anubis
| @@ -2699,8 +2699,8 @@ public define Printable_tree | @@ -2699,8 +2699,8 @@ public define Printable_tree | ||
| 2699 | [ ] then [ ], | 2699 | [ ] then [ ], |
| 2700 | [h . t] then | 2700 | [h . t] then |
| 2701 | if h is (val,item) then | 2701 | if h is (val,item) then |
| 2702 | - if item = selected.value | ||
| 2703 | - then ["<option value=\""+val.value+"\" selected>",item . format_choices(t)] | 2702 | + if val.value = selected.value |
| 2703 | + then ["<option value=\""+val.value+"\" selected=\"selected\">",item . format_choices(t)] | ||
| 2704 | else ["<option value=\""+val.value+"\">",item . format_choices(t,selected)] | 2704 | else ["<option value=\""+val.value+"\">",item . format_choices(t,selected)] |
| 2705 | }. | 2705 | }. |
| 2706 | 2706 |