diff options
author | Rick Olson <technoweenie@gmail.com> | 2007-12-04 05:30:28 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2007-12-04 05:30:28 +0000 |
commit | 112ed3031671476d6aee3d0f69affe6c113e711f (patch) | |
tree | de2227945665dc8e64a3aee4acb891265d1fab9c /actionpack/lib/action_view | |
parent | 9663f9952a4e5fb0698409b33a07c5fdd4206cd7 (diff) | |
download | rails-112ed3031671476d6aee3d0f69affe6c113e711f.tar.gz rails-112ed3031671476d6aee3d0f69affe6c113e711f.tar.bz2 rails-112ed3031671476d6aee3d0f69affe6c113e711f.zip |
Add 'disabled' attribute to <OPTION> separators used in time zone and country selects. Closes #10354 [hasmanyjosh]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8267 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_options_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/form_options_helper.rb b/actionpack/lib/action_view/helpers/form_options_helper.rb index e7d375cabb..10d539b413 100644 --- a/actionpack/lib/action_view/helpers/form_options_helper.rb +++ b/actionpack/lib/action_view/helpers/form_options_helper.rb @@ -249,7 +249,7 @@ module ActionView if priority_countries country_options += options_for_select(priority_countries, selected) - country_options += "<option value=\"\">-------------</option>\n" + country_options += "<option value=\"\" disabled=\"disabled\">-------------</option>\n" end return country_options + options_for_select(COUNTRIES, selected) @@ -280,7 +280,7 @@ module ActionView if priority_zones zone_options += options_for_select(convert_zones[priority_zones], selected) - zone_options += "<option value=\"\">-------------</option>\n" + zone_options += "<option value=\"\" disabled=\"disabled\">-------------</option>\n" zones = zones.reject { |z| priority_zones.include?( z ) } end |