enbable textbox widget for type passwd

This commit is contained in:
Christian Binder 2012-06-26 20:37:58 +00:00
parent 37945dd54a
commit 7d0a964a1e

View File

@ -91,6 +91,9 @@ var et2_textbox = et2_inputWidget.extend({
else
{
this.input = $j(document.createElement("input"));
if(this.options.type == "passwd") {
this.input.attr("type", "password");
}
}
if(this.options.size) {
@ -153,7 +156,7 @@ var et2_textbox = et2_inputWidget.extend({
}
});
et2_register_widget(et2_textbox, ["textbox"]);
et2_register_widget(et2_textbox, ["textbox", "passwd"]);
/**
* et2_textbox_ro is the dummy readonly implementation of the textbox.