Adds a warning for when a user with inherited permissions disables inheritance (#5605).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11310 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2013-02-03 08:03:25 +00:00
parent 08664b3742
commit 1acf1d6bf7
1 changed files with 14 additions and 0 deletions

View File

@ -73,3 +73,17 @@
<%= javascript_include_tag 'project_identifier' %>
<% end %>
<% end %>
<% if @project.inherit_members? && @project.parent && User.current.member_of?(@project.parent) %>
<%= javascript_tag do %>
$(document).ready(function() {
$("#project_inherit_members").change(function(){
if (!$(this).is(':checked')) {
if (!confirm("<%= escape_javascript(l(:text_own_membership_delete_confirmation)) %>")) {
$("#project_inherit_members").attr("checked", true);
}
}
});
});
<% end %>
<% end %>