Modifying groups to work with new concept

https://fedorahosted.org/freeipa/ticket/2040
This commit is contained in:
Petr Vobornik authored and Endi S. Dewata committed 2011-12-05 16:01:38 +00:00
1 parent a902fa4647
commit fdee0892f1
1 file changed
+3 -3
+3 -3
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();