Commit f4544c13 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix fieldset display in block configuration


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 92c7ba51
......@@ -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
......
Markdown is supported
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