Commit 11465b38 authored by Nigel McNie's avatar Nigel McNie
Browse files

[PIEFORMS] Make the input box for the bytes element a little shorter.



It doesn't need to be 8 characters long. I guess people who want to give
someone a billion terabytes of storage might complain, but it's only a
cosmetic thing anyway.
Signed-off-by: default avatarNigel McNie <nigel@catalyst.net.nz>
parent ec2b7a06
......@@ -66,7 +66,7 @@ function pieform_element_bytes(Pieform $form, $element) {/*{{{*/
// @todo probably create with an actual input element, as tabindex doesn't work here for one thing
// Same with the select. And do the events using mochikit signal instead of dom events
$numberinput = '<input';
$numberinput .= ' type="text" size="8" name="' . $name . '"';
$numberinput .= ' type="text" size="6" name="' . $name . '"';
$numberinput .= ' id="' . $formname . '_' . $name . '" value="' . $values['number'] . '" tabindex="' . $element['tabindex'] . '"';
$numberinput .= (isset($element['error']) ? ' class="error"' : '') . ">\n";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment