If value is available in the constructor, set it there

This commit is contained in:
Nathan Gray 2013-04-10 12:10:04 +00:00
parent 40acef68b6
commit 0516d2cc2a

View File

@ -106,8 +106,11 @@ var et2_textbox = et2_inputWidget.extend({
this.set_readonly(true);
}
this.input.addClass("et2_textbox");
this.setDOMNode(this.input[0]);
if(this.options.value)
{
this.set_value(this.options.value);
}
},
getValue: function()