##// END OF EJS Templates
Adds a warning for when a user with inherited permissions disables inheritance (#5605)....
Jean-Philippe Lang -
r11080:1acf1d6bf74d
parent child
Show More
@@ -73,3 +73,17
73 <%= javascript_include_tag 'project_identifier' %>
73 <%= javascript_include_tag 'project_identifier' %>
74 <% end %>
74 <% end %>
75 <% end %>
75 <% end %>
76
77 <% if @project.inherit_members? && @project.parent && User.current.member_of?(@project.parent) %>
78 <%= javascript_tag do %>
79 $(document).ready(function() {
80 $("#project_inherit_members").change(function(){
81 if (!$(this).is(':checked')) {
82 if (!confirm("<%= escape_javascript(l(:text_own_membership_delete_confirmation)) %>")) {
83 $("#project_inherit_members").attr("checked", true);
84 }
85 }
86 });
87 });
88 <% end %>
89 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now