]> source.dussan.org Git - redmine.git/commitdiff
Merged r3784 from trunk.
authorEric Davis <edavis@littlestreamsoftware.com>
Sat, 19 Jun 2010 23:03:01 +0000 (23:03 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Sat, 19 Jun 2010 23:03:01 +0000 (23:03 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.9-stable@3793 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/members_controller.rb
public/javascripts/application.js

index 3bfa606e1b1b930365bd07b472a29a4baed23953..2a12cee0ca7462b82584f77b481e25c32199ae69 100644 (file)
@@ -38,6 +38,7 @@ class MembersController < ApplicationController
       format.js { 
         render(:update) {|page| 
           page.replace_html "tab-content-members", :partial => 'projects/settings/members'
+          page << 'hideOnLoad()'
           members.each {|member| page.visual_effect(:highlight, "member-#{member.id}") }
         }
       }
@@ -51,6 +52,7 @@ class MembersController < ApplicationController
         format.js { 
           render(:update) {|page| 
             page.replace_html "tab-content-members", :partial => 'projects/settings/members'
+            page << 'hideOnLoad()'
             page.visual_effect(:highlight, "member-#{@member.id}")
           }
         }
@@ -64,7 +66,11 @@ class MembersController < ApplicationController
     end
     respond_to do |format|
       format.html { redirect_to :controller => 'projects', :action => 'settings', :tab => 'members', :id => @project }
-      format.js { render(:update) {|page| page.replace_html "tab-content-members", :partial => 'projects/settings/members'} }
+      format.js { render(:update) {|page|
+          page.replace_html "tab-content-members", :partial => 'projects/settings/members'
+          page << 'hideOnLoad()'
+        }
+      }
     end
   end
   
index 57419d0b0992a86be0ae1eaae825580848439f36..472f758307f3c5db7943d47c36f60faf7e525931 100644 (file)
@@ -207,3 +207,12 @@ Ajax.Responders.register({
         }
     }
 });
+
+function hideOnLoad() {
+  $$('.hol').each(function(el) {
+       el.hide();
+       });
+}
+
+Event.observe(window, 'load', hideOnLoad);
+