focus publisher on reshare
This commit is contained in:
parent
d0af03b723
commit
0cb9f1c0d7
2 changed files with 3 additions and 1 deletions
|
|
@ -22,6 +22,7 @@
|
|||
#publisher_textarea_wrapper
|
||||
%ul#photodropzone
|
||||
= status.text_area :message, :rows => 2, :value => h(params[:prefill])
|
||||
= javascript_tag "if ($('textarea#status_message_message').val() != ''){ $('textarea#status_message_message').focus();}"
|
||||
|
||||
- for aspect_id in @aspect_ids
|
||||
= hidden_field_tag 'aspect_ids[]', aspect_id.to_s
|
||||
|
|
|
|||
|
|
@ -7,7 +7,8 @@
|
|||
= form_for StatusMessage.new, :remote => true do |status|
|
||||
%p
|
||||
= status.label :message, t('.post_a_message_to', :aspect => (aspect == :all ? t('.all') : aspect))
|
||||
= status.text_area :message, :rows => 2, :value => params[:prefill]
|
||||
= status.text_area :message, :rows => 2, :value => h(params[:prefill])
|
||||
= javascript_tag "if ($('textarea#status_message_message').val() != ''){ $('textarea#status_message_message').focus();}"
|
||||
|
||||
= status.hidden_field :to, :value => (aspect == :all ? aspect : aspect.id)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue