Bachir Soussi Chiadmi b26db27098 patched loggintobogan fixed bug against field_permissions
removed field_collection (gonna dev own custom modules for showroom
updated field-permissions to last dev
2016-11-22 19:05:44 +01:00

26 lines
778 B
JavaScript

/**
* LoginToboggan needs its pre-auth role to not be explicitly tied to
* the auth role.
*/
(function ($) {
/**
* Shows checked and disabled checkboxes for inherited permissions.
*/
Drupal.behaviors.LoginTobogganPermissions = {
attach: function (context, settings) {
// Revert changes made by modules/user/user.permissions.js
$('table#permissions', context).once('tobogganPermissions', function () {
$('input[type=checkbox]', this).filter('.rid-' + settings.LoginToboggan.preAuthID).removeClass('real-checkbox').each(function () {
$(this).next().filter('.dummy-checkbox').remove();
$('input.rid-' + settings.LoginToboggan.preAuthID).each(function () {
this.style.display = '';
});
});
});
},
};
})(jQuery);