mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Disables gid field if not posix group in group adder dialog
https://fedorahosted.org/freeipa/ticket/1922 gidNumber is not an allowed attribute for a non-posix group. When adding a non-posix group from the UI, unchecking the "Is this a POSIX group?:" box should disable the "GID:" field.
This commit is contained in:
committed by
Martin Kosek
parent
5b968f9632
commit
95b85f907b
@@ -468,6 +468,15 @@ IPA.text_widget = function(spec) {
|
||||
}
|
||||
};
|
||||
|
||||
that.set_enabled = function(value) {
|
||||
|
||||
if(value) {
|
||||
that.input.removeAttr('disabled');
|
||||
} else {
|
||||
that.input.attr('disabled', 'disabled');
|
||||
}
|
||||
};
|
||||
|
||||
// methods that should be invoked by subclasses
|
||||
that.text_load = that.load;
|
||||
|
||||
@@ -771,6 +780,7 @@ IPA.checkbox_widget = function (spec) {
|
||||
|
||||
// default value
|
||||
that.checked = spec.checked || false;
|
||||
that.value_changed = IPA.observer();
|
||||
|
||||
that.create = function(container) {
|
||||
|
||||
@@ -785,6 +795,7 @@ IPA.checkbox_widget = function (spec) {
|
||||
title: that.tooltip,
|
||||
change: function() {
|
||||
that.set_dirty(that.test_dirty());
|
||||
that.value_changed.notify(that.save(), that);
|
||||
}
|
||||
}).appendTo(container);
|
||||
|
||||
|
Reference in New Issue
Block a user