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
8eb0345f
Commit
8eb0345f
authored
Dec 12, 2006
by
Nigel McNie
Committed by
Nigel McNie
Dec 12, 2006
Browse files
Add tabindex to the element. A temporary fix however.
parent
44965b37
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/pieforms/pieform/elements/expiry.php
View file @
8eb0345f
...
...
@@ -62,13 +62,14 @@ function pieform_render_expiry($element, Pieform $form) {
}
// @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
.
=
$values
[
'units'
]
==
'noenddate'
?
' disabled="disabled"'
:
''
;
$numberinput
.
=
' type="text" size="4" name="'
.
$name
.
'_number"'
;
$numberinput
.
=
' id="'
.
$name
.
'_number" value="'
.
$values
[
'number'
]
.
"
\"
>
\n
"
;
$numberinput
.
=
' id="'
.
$name
.
'_number" value="'
.
$values
[
'number'
]
.
'" tabindex="'
.
$element
[
'tabindex'
]
.
"
\"
>
\n
"
;
$uselect
=
'<select onchange="'
.
$name
.
'_change()" '
;
$uselect
.
=
'name="'
.
$name
.
'_units" id="'
.
$name
.
'_units"'
.
">
\n
"
;
$uselect
.
=
'name="'
.
$name
.
'_units" id="'
.
$name
.
'_units"'
.
' tabindex="'
.
$element
[
'tabindex'
]
.
"
\
"
>
\n
"
;
foreach
(
pieform_render_expire_get_expiry_units
()
as
$u
)
{
$uselect
.
=
"
\t
<option value=
\"
$u
\"
"
.
((
$values
[
'units'
]
==
$u
)
?
' selected="selected"'
:
''
)
.
'>'
.
$form
->
i18n
(
$u
)
.
"</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