Commit f117d3f5 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

bootstrap 4 changed css clalses

parent 95581d0d
......@@ -966,27 +966,29 @@ GuiUtils.prototype.createTabMenuObject = function (params) {
var id = params.id;
var navigationBar = params.navigationBar;
var navClass = '';
var linkClass = params.className + ' nav-link';
var liClass = 'nav-item';
if (navigationBar.children.length === 0) {
navClass = "active";
linkClass += " active";
liClass += " active";
}
var navLi = document.createElement("li");
navLi.className = navClass;
navLi.className = liClass;
var navLink = Functions.createElement({
type: "a",
className: params.className + ' ' + navClass,
className: linkClass,
href: "#" + id,
content: name,
onclick: function () {
$(navLink).tab('show');
// $(navLink).tab('show');
if (params.onclick) {
return params.onclick();
}
},
xss: false
});
$(navLink).attr("role", "tab");
// $(navLink).attr("role", "tab");
$(navLink).attr("data-toggle", "tab");
navLi.appendChild(navLink);
return navLi;
......@@ -1006,7 +1008,7 @@ GuiUtils.prototype.createTabContentObject = function (params) {
result.style.height = "100%";
var contentClass = 'tab-pane';
if (navigationObject.className === "active") {
if ($("a.active", navigationObject).length > 0) {
contentClass = "tab-pane active";
}
......
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