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:
Petr Vobornik 2012-04-04 11:04:33 +02:00
parent db24a831d4
commit 2e3f5f25c4

View File

@ -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);
});