Skip to content

Commit

Permalink
re-tweak option classes
Browse files Browse the repository at this point in the history
  • Loading branch information
ajb committed Nov 9, 2013
1 parent c1a72ae commit 05c3355
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/models/formbuilder/response_field_checkboxes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def render_input(value, opts = {})

if self[:field_options]['include_other_option']
str += """
<div class='other-option'>
<label class='fb-option'>
<div class='fb-option'>
<label>
<input type='checkbox' name='response_fields[#{self[:id]}][other_checkbox]' #{value['Other'] ? 'checked' : ''} value='on' />
Other
</label>
Expand Down
4 changes: 2 additions & 2 deletions app/models/formbuilder/response_field_radio.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def render_input(value, opts = {})

if self[:field_options]['include_other_option']
str += """
<div class='other-option'>
<label class='fb-option'>
<div class='fb-option'>
<label>
<input type='radio' name='response_fields[#{self[:id]}]' #{value == 'Other' ? 'checked' : ''} value='Other' />
Other
</label>
Expand Down

0 comments on commit 05c3355

Please sign in to comment.