diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2014-04-24 16:32:07 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2014-06-11 10:47:27 +0200 |
commit | e3840eef09f4a6b1ac3c0a92f5929353a6c9e6b6 (patch) | |
tree | 98a1c2200b8689dc9eb429483c9fc845fcf2f7ac /install/ui/src/freeipa/widget.js | |
parent | 255cbb49763ff579feed935a5a725fc2b272749c (diff) | |
download | freeipa-e3840eef09f4a6b1ac3c0a92f5929353a6c9e6b6.tar.gz freeipa-e3840eef09f4a6b1ac3c0a92f5929353a6c9e6b6.tar.xz freeipa-e3840eef09f4a6b1ac3c0a92f5929353a6c9e6b6.zip |
webui: fix regression: enabled gid field on group add
GID field should be enabled by default since the default group is posix.
Was caused by option_widget_base not properly reporting value change while
selecting the default value. It has to be notified with delay otherwise the
event is consumed by FieldBinder.
https://fedorahosted.org/freeipa/ticket/4325
Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
Diffstat (limited to 'install/ui/src/freeipa/widget.js')
-rw-r--r-- | install/ui/src/freeipa/widget.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js index fc60959cd..0a9c491f3 100644 --- a/install/ui/src/freeipa/widget.js +++ b/install/ui/src/freeipa/widget.js @@ -1590,6 +1590,8 @@ IPA.option_widget_base = function(spec, that) { // select default if none specified if (that.default_value !== null) { check(that._selector+'[value="'+that.default_value+'"]'); + // default was selected instead of supplied value, hence notify + util.emit_delayed(that, 'value-change', { source: that }); } else { // otherwise select empty check(that._selector+'[value=""]'); |