Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
e53539ec
Commit
e53539ec
authored
Sep 10, 2010
by
Richard Mansfield
Browse files
Fix js error in bytes pieform element (bug #634569)
Signed-off-by:
Richard Mansfield
<
richard.mansfield@catalyst.net.nz
>
parent
976451f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/pieforms/pieform/elements/bytes.php
View file @
e53539ec
...
...
@@ -70,8 +70,7 @@ function pieform_element_bytes(Pieform $form, $element) {/*{{{*/
$numberinput
.
=
' id="'
.
$formname
.
'_'
.
$name
.
'" value="'
.
Pieform
::
hsc
(
$values
[
'number'
])
.
'" tabindex="'
.
Pieform
::
hsc
(
$element
[
'tabindex'
])
.
'"'
;
$numberinput
.
=
(
isset
(
$element
[
'error'
])
?
' class="error"'
:
''
)
.
">
\n
"
;
$uselect
=
'<select onchange="'
.
$name
.
'_change()" '
;
$uselect
.
=
'name="'
.
$name
.
'_units" id="'
.
$formname
.
'_'
.
$name
.
'_units"'
.
' tabindex="'
.
Pieform
::
hsc
(
$element
[
'tabindex'
])
.
"
\"
>
\n
"
;
$uselect
=
'<select name="'
.
$name
.
'_units" id="'
.
$formname
.
'_'
.
$name
.
'_units"'
.
' tabindex="'
.
Pieform
::
hsc
(
$element
[
'tabindex'
])
.
"
\"
>
\n
"
;
foreach
(
pieform_element_bytes_get_bytes_units
()
as
$u
)
{
$uselect
.
=
"
\t
<option value=
\"
$u
\"
"
.
((
$values
[
'units'
]
==
$u
)
?
' selected="selected"'
:
''
)
.
'>'
.
$form
->
i18n
(
'element'
,
'bytes'
,
$u
,
$element
)
.
"</option>
\n
"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment