From: Jean-Philippe Lang Date: Sat, 15 Jan 2011 13:20:18 +0000 (+0000) Subject: Fixed: "Loading..." icon does not disappear after adding a project member when there... X-Git-Tag: 1.2.0~1072 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4c46fa4ef487d0087f90a95d42dda340b80d805e;p=redmine.git Fixed: "Loading..." icon does not disappear after adding a project member when there is no other member to add (#7265). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4719 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/projects/settings/_members.rhtml b/app/views/projects/settings/_members.rhtml index 7930c527e..4230e037b 100644 --- a/app/views/projects/settings/_members.rhtml +++ b/app/views/projects/settings/_members.rhtml @@ -56,8 +56,8 @@
<% 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| %>
<%=l(:label_member_new)%>

<%= label_tag "principal_search", l(:label_principal_search) %><%= text_field_tag 'principal_search', nil %>