Commit 6ea80f3b authored by Nigel McNie's avatar Nigel McNie
Browse files

Only output the checkbox remembering javascript when it's required, rather...

Only output the checkbox remembering javascript when it's required, rather than also when the radio buttons are being used.
parent a7462d61
......@@ -148,7 +148,8 @@ function pieform_element_artefactchooser_views_js(Pieform $form, $element) {
// TODO: This is quite a lot of javascript to be sending inline, especially the ArtefactChooserData
// class.
$pagination_js .= <<<EOF
if (empty($element['selectone'])) {
$pagination_js .= <<<EOF
var ul = getFirstElementByTagAndClassName('ul', 'artefactchooser-tabs', '{$form->get_name()}_{$element['name']}_container');
var doneBrowse = false;
var browseA = null;
......@@ -454,6 +455,7 @@ function ArtefactChooserData() {
new ArtefactChooserData();
EOF;
}
return $pagination_js;
}
......
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