summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2010-12-23 14:26:12 -0500
committerAdam Young <ayoung@redhat.com>2011-01-05 10:39:45 -0500
commit553e08afa6c583a36ed57f9c6e8aeee301b0bf34 (patch)
treec74fc612ad91588351c0776c5678c0b6000fa2f3
parent0fc1d260c08d54f7189f20814f2ebc7cbb031918 (diff)
downloadfreeipa-553e08afa6c583a36ed57f9c6e8aeee301b0bf34.tar.gz
freeipa-553e08afa6c583a36ed57f9c6e8aeee301b0bf34.tar.xz
freeipa-553e08afa6c583a36ed57f9c6e8aeee301b0bf34.zip
posix checked check box for posix groups selected by default
-rw-r--r--install/static/group.js6
-rwxr-xr-xinstall/static/widget.js7
2 files changed, 9 insertions, 4 deletions
diff --git a/install/static/group.js b/install/static/group.js
index 21345acc3..c54df26e7 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 dcc173411..ed2ef8d5d 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) {
$('<input/>', {
- 'type': 'checkbox',
- 'name': that.name
+ type: 'checkbox',
+ name: that.name,
+ checked : is_checked
}).appendTo(container);
if (that.undo) {