Redmine 3.4.4
This commit is contained in:
commit
64924a6376
2112 changed files with 259028 additions and 0 deletions
13
app/views/principal_memberships/new.js.erb
Normal file
13
app/views/principal_memberships/new.js.erb
Normal file
|
@ -0,0 +1,13 @@
|
|||
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'principal_memberships/new_modal') %>');
|
||||
showModal('ajax-modal', '700px');
|
||||
|
||||
$('.projects-selection').on('click', 'input[type=checkbox]', function(e){
|
||||
if (!$(this).is(':checked')) {
|
||||
if ($(this).closest('li').find('ul input[type=checkbox]:not(:checked)').length > 0) {
|
||||
$(this).closest('li').find('ul input[type=checkbox]:not(:checked)').attr('checked', 'checked');
|
||||
e.preventDefault();
|
||||
} else {
|
||||
$(this).closest('li').find('ul input[type=checkbox]:checked').removeAttr('checked');
|
||||
}
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue