summaryrefslogtreecommitdiffstats
path: root/install/ui/widget.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/widget.js')
-rw-r--r--install/ui/widget.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/install/ui/widget.js b/install/ui/widget.js
index fa102737c..744e6ed4a 100644
--- a/install/ui/widget.js
+++ b/install/ui/widget.js
@@ -282,6 +282,7 @@ IPA.text_widget = function(spec) {
var that = IPA.widget(spec);
that.size = spec.size || 30;
+ that.type = spec.type || 'text';
that.create = function(container) {
@@ -291,7 +292,7 @@ IPA.text_widget = function(spec) {
}).appendTo(container);
$('<input/>', {
- type: 'text',
+ type: that.type,
name: that.name,
disabled: that.disabled,
size: that.size,