diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2011-11-29 14:29:51 +0100 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-12-05 16:01:50 +0000 |
commit | 9a09916108539f0d9f70257983666254c0cde67e (patch) | |
tree | 1ccaf3f296ff1c9eaea466cd095a020a4bcd680e /install/ui/group.js | |
parent | ab667912cf19d17e749d13b1d9f428ab6ae55b93 (diff) | |
download | freeipa.git-9a09916108539f0d9f70257983666254c0cde67e.tar.gz freeipa.git-9a09916108539f0d9f70257983666254c0cde67e.tar.xz freeipa.git-9a09916108539f0d9f70257983666254c0cde67e.zip |
Changing definition of basic fields in section from factory to type
https://fedorahosted.org/freeipa/ticket/2040
Diffstat (limited to 'install/ui/group.js')
-rw-r--r-- | install/ui/group.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/install/ui/group.js b/install/ui/group.js index 91e1af7f..959a96c4 100644 --- a/install/ui/group.js +++ b/install/ui/group.js @@ -46,7 +46,7 @@ IPA.group.entity = function(spec) { fields: [ 'cn', { - factory: IPA.textarea_widget, + type: 'textarea', name: 'description' }, 'gidnumber' @@ -110,11 +110,11 @@ IPA.group.entity = function(spec) { fields: [ 'cn', { - factory: IPA.textarea_widget, + type: 'textarea', name: 'description' }, { - factory: IPA.group_nonposix_checkbox_widget, + type: 'nonposix_checkbox', name: 'nonposix', label: IPA.messages.objects.group.posix, checked: true @@ -142,6 +142,9 @@ IPA.group_nonposix_checkbox_widget = function (spec) { return that; }; +IPA.widget_factories['nonposix_checkbox'] = IPA.group_nonposix_checkbox_widget; +IPA.field_factories['nonposix_checkbox'] = IPA.checkbox_fields; + IPA.group_adder_dialog = function(spec) { spec = spec || {}; |