From 4c46fa4ef487d0087f90a95d42dda340b80d805e Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 15 Jan 2011 13:20:18 +0000 Subject: [PATCH] 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 --- app/views/projects/settings/_members.rhtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 %>

-- 2.39.5