##// END OF EJS Templates
Add cancel button during edition of a wiki page (#4285)....
Add cancel button during edition of a wiki page (#4285). git-svn-id: http://svn.redmine.org/redmine/trunk@14734 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r13116:c2e73160daa7
r14352:a371c8d850a2
Show More
new.js.erb
13 lines | 583 B | text/plain | TextLexer
$('#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');
}
}
});