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:
parent
08664b3742
commit
1acf1d6bf7
@ -73,3 +73,17 @@
|
|||||||
<%= javascript_include_tag 'project_identifier' %>
|
<%= javascript_include_tag 'project_identifier' %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% 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 %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user