]> source.dussan.org Git - redmine.git/commitdiff
Fixed: "Loading..." icon does not disappear after adding a project member when there...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 15 Jan 2011 13:20:18 +0000 (13:20 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 15 Jan 2011 13:20:18 +0000 (13:20 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4719 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/projects/settings/_members.rhtml

index 7930c527e3e15c482edd310f619847cb0508f403..4230e037b95dde1c19b927cf23b79c69498aeea0 100644 (file)
@@ -56,8 +56,8 @@
 <div class="splitcontentright">
 <% if roles.any? && principals.any? %>
   <% remote_form_for(:member, @member, :url => {:controller => 'members', :action => 'new', :id => @project}, :method => :post,
-                                                                          :loading => "$('member-add-submit').disable()",
-                                                                          :complete => "$('member-add-submit').enable()") do |f| %>
+                                                                          :loading => '$(\'member-add-submit\').disable();',
+                                                                          :complete => 'if($(\'member-add-submit\')) $(\'member-add-submit\').enable();') do |f| %>
     <fieldset><legend><%=l(:label_member_new)%></legend>
     
                <p><%= label_tag "principal_search", l(:label_principal_search) %><%= text_field_tag 'principal_search', nil %></p>