Skip to content
GitLab
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
f4544c13
Commit
f4544c13
authored
Dec 16, 2009
by
Richard Mansfield
Browse files
Fix fieldset display in block configuration
Signed-off-by:
Richard Mansfield
<
richardm@catalyst.net.nz
>
parent
92c7ba51
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/pieforms/pieform/elements/fieldset.php
View file @
f4544c13
...
...
@@ -95,9 +95,8 @@ function pieform_element_fieldset(Pieform $form, $element) {/*{{{*/
*/
function
pieform_element_fieldset_views_js
(
Pieform
$form
,
$element
)
{
// NOTE: $element['name'] is not set properly at this point
$blockname
=
json_encode
(
'blockinstance_'
.
substr
(
$form
->
get_name
(),
3
));
return
<<<EOF
forEach(getElementsByTagAndClassName('legend', null,
$blockname
), function(legend) {
forEach(getElementsByTagAndClassName('legend', null,
'instconf'
), function(legend) {
if (legend.firstChild.tagName == 'SCRIPT') {
if (typeof(legend.firstChild.text) != 'undefined') {
// IE7
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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