Commit 049c9b3e authored by Carsten  Rose's avatar Carsten Rose
Browse files

BuildFormBootstrap: JS integrated to make the Back Button work for Tabs (Pills).

parent 8bf606a0
......@@ -145,7 +145,7 @@ class BuildFormBootstrap extends AbstractBuildForm {
$html .= '<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button">more <span class="caret"></span></a>';
}
$html = $this->wrapTag('<ul id="myTabs" class="nav nav-pills" role="tablist">', $pillButton . $html);
$html = $this->wrapTag('<ul id="qfqTabs" class="nav nav-pills" role="tablist">', $pillButton . $html);
$html = $this->wrapTag('<div class="col-md-10">', $html);
return $html;
......@@ -214,7 +214,21 @@ BUTTONS;
$html .= '<input type="submit" value="Submit">';
$html .= '</form>'; // <form class="form-horizontal" ...
$html .= <<<EOF
<script type="text/javascript">
$(function () {
'use strict';
QfqNS.Log.level = 0;
var qfqPageState = new QfqNS.PageState();
var qfqPage = new QfqNS.QfqPage({pageState: qfqPageState});
$('[data-toggle="tooltip"]').tooltip();
});
</script>
EOF;
$html .= '</div>'; // <div class="container-fluid">
return $html;
}
......
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