Commit 0bab9ae6 authored by Nigel McNie's avatar Nigel McNie
Browse files

WTF was I smoking... make sure the artefactchooserdata class is sent if the...

WTF was I smoking... make sure the artefactchooserdata class is sent if the artefactchooser is not a 'selectone'. Make sure to always send the javascript to wire up the tabs properly.
parent 511ebad5
......@@ -148,8 +148,7 @@ 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.
if (empty($element['selectone'])) {
$pagination_js .= <<<EOF
$pagination_js .= <<<EOF
var ul = getFirstElementByTagAndClassName('ul', 'artefactchooser-tabs', '{$form->get_name()}_{$element['name']}_container');
var doneBrowse = false;
var browseA = null;
......@@ -258,7 +257,9 @@ if (ul) {
}
});
}
EOF;
if (empty($element['selectone'])) {
$pagination_js .=<<<EOF
/**
* Manages the problem of changing pages in the artefact chooser losing what
* things were selected/not selected
......
Supports Markdown
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