Sha256: cf69db480f49f26ff513a4fd6f4b1ef3884905ecd449d6059352933278484025

Contents?: true

Size: 583 Bytes

Versions: 34

Compression:

Stored size: 583 Bytes

Contents

$('#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');
    }
  }
});

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
redmine_extensions-0.0.39 spec/redmine/app/views/principal_memberships/new.js.erb
redmine_extensions-0.0.38 spec/redmine/app/views/principal_memberships/new.js.erb
redmine_extensions-0.0.37 spec/redmine/app/views/principal_memberships/new.js.erb
redmine_extensions-0.1.11 spec/redmine/app/views/principal_memberships/new.js.erb
redmine_extensions-0.1.10 spec/redmine/app/views/principal_memberships/new.js.erb
redmine_extensions-0.0.36 spec/redmine/app/views/principal_memberships/new.js.erb
redmine_extensions-0.0.34 spec/redmine/app/views/principal_memberships/new.js.erb
redmine_extensions-0.1.09 spec/redmine/app/views/principal_memberships/new.js.erb
redmine_extensions-0.1.07 spec/redmine/app/views/principal_memberships/new.js.erb
redmine_extensions-0.1.06 spec/redmine/app/views/principal_memberships/new.js.erb
redmine_extensions-0.1.05 spec/redmine/app/views/principal_memberships/new.js.erb
redmine_extensions-0.1.04 spec/redmine/app/views/principal_memberships/new.js.erb
redmine_extensions-0.1.03 spec/redmine/app/views/principal_memberships/new.js.erb
redmine_extensions-0.0.33 spec/redmine/app/views/principal_memberships/new.js.erb
redmine_extensions-0.1.02 spec/redmine/app/views/principal_memberships/new.js.erb
redmine_extensions-0.1.01 spec/redmine/app/views/principal_memberships/new.js.erb
redmine_extensions-0.0.29 spec/redmine/app/views/principal_memberships/new.js.erb
redmine_extensions-0.0.28 spec/redmine/app/views/principal_memberships/new.js.erb
redmine_extensions-0.0.27 spec/redmine/app/views/principal_memberships/new.js.erb
redmine_extensions-0.0.24 spec/redmine/app/views/principal_memberships/new.js.erb