summaryrefslogtreecommitdiffstats
path: root/install/ui/widget.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/widget.js')
-rw-r--r--install/ui/widget.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/install/ui/widget.js b/install/ui/widget.js
index 3201dad7..cc5f4f78 100644
--- a/install/ui/widget.js
+++ b/install/ui/widget.js
@@ -665,6 +665,7 @@ IPA.checkboxes_widget = function (spec) {
that.options = spec.options || [];
that.direction = spec.direction || 'vertical';
+ that.mutex = spec.mutex;
that.create = function(container) {
@@ -699,6 +700,15 @@ 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);
});