Removed default size from form fields
This commit is contained in:
parent
e2fe90126b
commit
2acff557d0
1 changed files with 11 additions and 17 deletions
|
@ -267,9 +267,7 @@ helma.Html.prototype.input = function(param) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var attr = Object.prototype.reduce.call(param);
|
var attr = Object.prototype.reduce.call(param);
|
||||||
attr.type = "text";
|
attr.type = param.type || "text";
|
||||||
if (!attr.size)
|
|
||||||
attr.size = 20;
|
|
||||||
attr.value = (attr.value != null) ? encodeForm(attr.value) : "";
|
attr.value = (attr.value != null) ? encodeForm(attr.value) : "";
|
||||||
this.tag("input", attr);
|
this.tag("input", attr);
|
||||||
return;
|
return;
|
||||||
|
@ -467,8 +465,6 @@ helma.Html.prototype.dropDown = function(param, options, selectedValue, firstOpt
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var attr = Object.prototype.reduce.call(param);
|
var attr = Object.prototype.reduce.call(param);
|
||||||
if (!attr.size)
|
|
||||||
attr.size = 1;
|
|
||||||
this.openTag("select", attr);
|
this.openTag("select", attr);
|
||||||
res.write("\n ");
|
res.write("\n ");
|
||||||
if (firstOption) {
|
if (firstOption) {
|
||||||
|
@ -758,8 +754,6 @@ helma.Html.prototype.password = function(attr) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
attr.type = "password";
|
attr.type = "password";
|
||||||
if (!attr.size)
|
|
||||||
attr.size = 20;
|
|
||||||
this.tag("input", attr);
|
this.tag("input", attr);
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue