Fix regression in group type selection in group adder dialog

Refactoring of radio widget (04325fbb4c) caused that value is no longer supplied to value_change handler.
This commit is contained in:
Petr Vobornik
2013-04-05 13:20:23 +02:00
parent 617114aac4
commit 53dc8b3ec9

View File

@@ -188,12 +188,11 @@ IPA.group_adder_dialog = function(spec) {
type_field.widget.value_changed.attach(that.on_type_change);
};
that.on_type_change = function(value) {
that.on_type_change = function() {
var type_field = that.fields.get_field('type');
var gid_field = that.fields.get_field('gidnumber');
var external_field = that.fields.get_field('external');
var posix = value[0] === 'posix';
var posix = type_field.save()[0] === 'posix';
if (!posix) {
gid_field.reset();