summaryrefslogtreecommitdiffstats
path: root/install/static/widget.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/static/widget.js')
-rwxr-xr-xinstall/static/widget.js7
1 files changed, 4 insertions, 3 deletions
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) {
$('<input/>', {
- 'type': 'checkbox',
- 'name': that.name
+ type: 'checkbox',
+ name: that.name,
+ checked : is_checked
}).appendTo(container);
if (that.undo) {