From 553e08afa6c583a36ed57f9c6e8aeee301b0bf34 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Thu, 23 Dec 2010 14:26:12 -0500 Subject: posix checked check box for posix groups selected by default --- install/static/group.js | 6 +++++- install/static/widget.js | 7 ++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/install/static/group.js b/install/static/group.js index 21345acc..c54df26e 100644 --- a/install/static/group.js +++ b/install/static/group.js @@ -83,7 +83,11 @@ function ipa_group_add_dialog(spec) { that.add_field(ipa_text_widget({name:'cn', undo: false})); that.add_field(ipa_text_widget({name:'description', undo: false})); // TODO: Replace with i18n label - that.add_field(ipa_checkbox_widget({name:'posix', label:'Is this a POSIX group?', undo: false})); + that.add_field(ipa_checkbox_widget({ + name:'posix', + label:'Is this a POSIX group?', + undo: false, + checked:'checked'})); that.add_field(ipa_text_widget({name:'gidnumber', undo: false})); that.add_dialog_init(); diff --git a/install/static/widget.js b/install/static/widget.js index dcc17341..ed2ef8d5 100755 --- a/install/static/widget.js +++ b/install/static/widget.js @@ -205,14 +205,15 @@ function ipa_text_widget(spec) { function ipa_checkbox_widget(spec) { spec = spec || {}; - + var is_checked = spec.checked || ''; var that = ipa_widget(spec); that.create = function(container) { $('', { - 'type': 'checkbox', - 'name': that.name + type: 'checkbox', + name: that.name, + checked : is_checked }).appendTo(container); if (that.undo) { -- cgit