Update index.js

pull/13978/head
Engincan VESKE 3 years ago
parent 6ed94dbe69
commit b860079aa6

@ -268,7 +268,7 @@
for (let i = 0; i < selectedTreeItems.length; i++)
{
var anchorItem = $(selectedTreeItems[i]).find("a");
documentNodeNames.append('<li class="breadcrumb-item"><a href="' + anchorItem.attr("href") + '">' + anchorItem.html() + '</a></li>');
documentNodeNames.append('<li class="breadcrumb-item ' + (i === selectedTreeItems.length - 1 ? "active": "") + '"><a href="' + anchorItem.attr("href") + '">' + anchorItem.html() + '</a></li>');
}
}
};

Loading…
Cancel
Save