monster_menus-9.0.x-dev/modules/mm_workflow_access/js/edit_form.js
modules/mm_workflow_access/js/edit_form.js
(function ($) {
Drupal.behaviors.MMworkflowAccessEditForm = {
attach: function(context) {
$('input.wfe-everyone:not(.wfe-everyone-processed)', context)
.addClass('wfe-everyone-processed')
.click(function() {
if (this.checked) {
var p = this.parentNode.parentNode;
$('input.wfe-author', p).prop('checked', false);
$('input:hidden', p)[0].delAll();
}
});
$('input.wfe-author:not(.wfe-author-processed)', context)
.addClass('wfe-author-processed')
.click(function() {
if (this.checked) {
$('input.wfe-everyone', this.parentNode.parentNode).prop('checked', false);
}
});
}
};
})(jQuery);
