diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-04-05 13:20:23 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-04-10 09:28:15 +0200 |
commit | 53dc8b3ec925a838c0c44d8563c462bd80e297d2 (patch) | |
tree | c9197152a03f4d658cbb25fc8c882176f2417ad7 /install/ui/src/freeipa | |
parent | 617114aac420a672c09b3279205402d0afed87ec (diff) | |
download | freeipa-53dc8b3ec925a838c0c44d8563c462bd80e297d2.tar.gz freeipa-53dc8b3ec925a838c0c44d8563c462bd80e297d2.tar.xz freeipa-53dc8b3ec925a838c0c44d8563c462bd80e297d2.zip |
Fix regression in group type selection in group adder dialog
Refactoring of radio widget (04325fbb4c64ee4aef6d8c9adf0ff95b8b653101) caused that value is no longer supplied to value_change handler.
Diffstat (limited to 'install/ui/src/freeipa')
-rw-r--r-- | install/ui/src/freeipa/group.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/install/ui/src/freeipa/group.js b/install/ui/src/freeipa/group.js index b7749a990..a84f49f8e 100644 --- a/install/ui/src/freeipa/group.js +++ b/install/ui/src/freeipa/group.js @@ -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(); |