diff --git a/etemplate/inc/class.etemplate_widget_textbox.inc.php b/etemplate/inc/class.etemplate_widget_textbox.inc.php index ff3fe70573..6cf901eaa4 100644 --- a/etemplate/inc/class.etemplate_widget_textbox.inc.php +++ b/etemplate/inc/class.etemplate_widget_textbox.inc.php @@ -190,4 +190,4 @@ class etemplate_widget_textbox extends etemplate_widget } } } -etemplate_widget::registerWidget('etemplate_widget_textbox', array('textbox','text','int','integer','float','passwd','hidden','colorpicker')); +etemplate_widget::registerWidget('etemplate_widget_textbox', array('textbox','text','int','integer','float','passwd','hidden','colorpicker','hidden')); diff --git a/etemplate/js/et2_widget_textbox.js b/etemplate/js/et2_widget_textbox.js index 2cb0509f26..1db70842e1 100644 --- a/etemplate/js/et2_widget_textbox.js +++ b/etemplate/js/et2_widget_textbox.js @@ -110,8 +110,14 @@ var et2_textbox = et2_inputWidget.extend( else { this.input = $j(document.createElement("input")); - if(this.options.type == "passwd") { - this.input.attr("type", "password"); + switch(this.options.type) + { + case "passwd": + this.input.attr("type", "password"); + break; + case "hidden": + this.input.attr("type", "hidden"); + break; } if (this.options.autocomplete) this.input.attr("autocomplete", this.options.autocomplete); } @@ -223,7 +229,7 @@ var et2_textbox = et2_inputWidget.extend( this.options.blur = _value; } }); -et2_register_widget(et2_textbox, ["textbox", "passwd"]); +et2_register_widget(et2_textbox, ["textbox", "passwd", "hidden"]); /** * et2_textbox_ro is the dummy readonly implementation of the textbox.