Commit e8b84245ed46487116893a100048d97c07ad7826
Committed by
Macartur Sousa
1 parent
0588c69e
Exists in
fix_profile_wall
Fix expandable text area
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
app/helpers/application_helper.rb
... | ... | @@ -1115,7 +1115,8 @@ module ApplicationHelper |
1115 | 1115 | end |
1116 | 1116 | |
1117 | 1117 | def expandable_text_area(object_name, method, text_area_id, options = {}) |
1118 | - text_area(object_name, method, { :id => text_area_id, :onkeyup => "grow_text_area('#{text_area_id}')" }.merge(options)) | |
1118 | + options[:class] = (options[:class] || '') + ' autogrow' | |
1119 | + text_area(object_name, method, { :id => text_area_id }.merge(options)) | |
1119 | 1120 | end |
1120 | 1121 | |
1121 | 1122 | def pluralize_without_count(count, singular, plural = nil) | ... | ... |