diff options
Diffstat (limited to 'template/en/default/global/select-menu.html.tmpl')
-rw-r--r-- | template/en/default/global/select-menu.html.tmpl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/template/en/default/global/select-menu.html.tmpl b/template/en/default/global/select-menu.html.tmpl index f8d4d68e2..64d8b9a46 100644 --- a/template/en/default/global/select-menu.html.tmpl +++ b/template/en/default/global/select-menu.html.tmpl @@ -24,25 +24,25 @@ # multiple: boolean; whether or not the menu is multi-select # # size: integer; the number of items to display at once - # + # # options: array or hash; the items with which to populate the array. # If a hash is passed, the hash keys become the names displayed # to the user while the hash values become the value of the item. - # + # # default: string; the item selected in the menu by default. - # + # # onchange: code; JavaScript to be run when the user changes the value # selected in the menu. #%] - -[%# Get the scalar representation of the options reference, + +[%# Get the scalar representation of the options reference, # which looks like "ARRAY(0xA352BA3F)" or "HASH(0xA352BA3F)", # so we can figure out whether it is a reference to an array # or a hash. #%] [% options_type = BLOCK %][% options %][% END %] -<select name="[% name FILTER html %]" +<select name="[% name FILTER html %]" [% IF onchange %]onchange="[% onchange FILTER html %]"[% END %] [% IF multiple %] multiple [% END %] [% IF size %] size="[% size %]" [% END %]> @@ -55,7 +55,7 @@ [% END %] [% ELSIF options_type.search("HASH") %] [% FOREACH option = options %] - <option value="[% option.value FILTER html %]" + <option value="[% option.value FILTER html %]" [% " selected" IF option.value == default %]> [% option.key FILTER html %] </option> |