Modifying groups to work with new concept

https://fedorahosted.org/freeipa/ticket/2040
This commit is contained in:
Petr Vobornik
2011-11-29 13:34:59 +01:00
committed by Endi S. Dewata
parent a902fa4647
commit fdee0892f1

View File

@@ -151,16 +151,16 @@ IPA.group_adder_dialog = function(spec) {
var init = function() {
var posix_field = that.fields.get_field('nonposix');
posix_field.value_changed.attach(that.on_posix_change);
posix_field.widget.value_changed.attach(that.on_posix_change);
};
that.on_posix_change = function (value) {
var gid_field = that.fields.get_field('gidnumber');
if(value) {
if (value[0]) {
gid_field.reset();
}
gid_field.set_enabled(!value);
gid_field.set_enabled(!value[0]);
};
init();