diff --git a/app/views/profile/_profile_wall.rhtml b/app/views/profile/_profile_wall.rhtml index f0601f9..25727a4 100644 --- a/app/views/profile/_profile_wall.rhtml +++ b/app/views/profile/_profile_wall.rhtml @@ -1,7 +1,7 @@

<%= _("%s's wall") % @profile.name %>

<%= flash[:error] %> - <% form_remote_tag :url => {:controller => 'profile', :action => 'leave_scrap', :tab_action => 'wall' }, :update => 'profile_activities', :success => "$('leave_scrap_content').value=''" do %> + <% 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 %> <%= limited_text_area :scrap, :content, 420, 'leave_scrap_content', :cols => 50, :rows => 2 %> <%= submit_button :new, _('Share') %> <% end %> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index e8c733d..9126be5 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -5194,6 +5194,9 @@ li.profile-activity-item.upload_image .activity-gallery-images-count-1 img { #leave_scrap textarea { overflow: hidden; } +#leave_scrap .loading textarea { + background: url('/images/loading-small.gif') 50% 50% no-repeat; +} .profile-send-reply { color: #aaa; } -- libgit2 0.21.2