diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-01-15 13:20:18 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-01-15 13:20:18 +0000 |
commit | 4c46fa4ef487d0087f90a95d42dda340b80d805e (patch) | |
tree | d37f5108b060050b42474fce683b053018352c63 /app/views/projects/settings | |
parent | 2b24b6c9bb40df75a34bd31258f49eca4ef5d448 (diff) | |
download | redmine-4c46fa4ef487d0087f90a95d42dda340b80d805e.tar.gz redmine-4c46fa4ef487d0087f90a95d42dda340b80d805e.zip |
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
Diffstat (limited to 'app/views/projects/settings')
-rw-r--r-- | app/views/projects/settings/_members.rhtml | 4 |
1 files 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 @@ <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> |