Commit 3f5de83ec1a4dca63b65aa59b68f4337765a3732
Committed by
Rodrigo Souto
1 parent
c054d8c6
Exists in
master
and in
28 other branches
Adding visual indicator when comments in profile walls are being sent
ActionItem2638
Showing
2 changed files
with
4 additions
and
1 deletions
Show diff stats
app/views/profile/_profile_wall.rhtml
1 | 1 | <h3><%= _("%s's wall") % @profile.name %></h3> |
2 | 2 | <div id='leave_scrap'> |
3 | 3 | <%= flash[:error] %> |
4 | - <% form_remote_tag :url => {:controller => 'profile', :action => 'leave_scrap', :tab_action => 'wall' }, :update => 'profile_activities', :success => "$('leave_scrap_content').value=''" do %> | |
4 | + <% form_remote_tag :url => {:controller => 'profile', :action => 'leave_scrap', :tab_action => 'wall' }, :update => 'profile_activities', :success => "$('leave_scrap_content').value=''", :complete => "jQuery('#leave_scrap_form').removeClass('loading').find('*').attr('disabled', false)", :loading => "jQuery('#leave_scrap_form').addClass('loading').find('*').attr('disabled', true)", :html => {:id => 'leave_scrap_form' } do %> | |
5 | 5 | <%= limited_text_area :scrap, :content, 420, 'leave_scrap_content', :cols => 50, :rows => 2 %> |
6 | 6 | <%= submit_button :new, _('Share') %> |
7 | 7 | <% end %> | ... | ... |
public/stylesheets/application.css
... | ... | @@ -5194,6 +5194,9 @@ li.profile-activity-item.upload_image .activity-gallery-images-count-1 img { |
5194 | 5194 | #leave_scrap textarea { |
5195 | 5195 | overflow: hidden; |
5196 | 5196 | } |
5197 | +#leave_scrap .loading textarea { | |
5198 | + background: url('/images/loading-small.gif') 50% 50% no-repeat; | |
5199 | +} | |
5197 | 5200 | .profile-send-reply { |
5198 | 5201 | color: #aaa; |
5199 | 5202 | } | ... | ... |