mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-12 09:11:55 -06:00
Removed mutex option from checkboxes
Mutually exclusive checkboxes were unusual. They are not in use anymore. The functionality is removed. https://fedorahosted.org/freeipa/ticket/2599
This commit is contained in:
parent
db24a831d4
commit
2e3f5f25c4
@ -660,7 +660,6 @@ IPA.checkboxes_widget = function (spec) {
|
||||
|
||||
that.options = spec.options || [];
|
||||
that.direction = spec.direction || 'vertical';
|
||||
that.mutex = spec.mutex;
|
||||
|
||||
that.create = function(container) {
|
||||
|
||||
@ -695,15 +694,6 @@ IPA.checkboxes_widget = function (spec) {
|
||||
|
||||
var input = $('input[name="'+that.name+'"]', that.container);
|
||||
input.change(function() {
|
||||
|
||||
var checkbox = $(this);
|
||||
var checked = checkbox.is(':checked');
|
||||
|
||||
if (that.mutex && checked) {
|
||||
that.clear();
|
||||
checkbox.attr('checked', true);
|
||||
}
|
||||
|
||||
that.value_changed.notify([that.save()], that);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user