hidden widget to transport content from server to client and back, thought server to client could easier be done by accessing content via content array manager

This commit is contained in:
Ralf Becker 2014-12-05 09:35:36 +00:00
parent acedd51dc5
commit 4a983e46d9
2 changed files with 10 additions and 4 deletions

View File

@ -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'));

View File

@ -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.