Commit eee369fc by Simon Chen

Fix breadcrumb display so it does not include parent node texts

EDUCATOR-1549
parent d00697f5
......@@ -277,14 +277,18 @@
getBreadcrumbText: function($item) {
var $parentSubMenus = $item.parents('.forum-nav-browse-submenu'),
crumbs = [],
subTopic = $('.forum-nav-browse-title', $item)
.first()
subTopic = $(
$('.forum-nav-browse-title', $item)
.first().contents().last()
)
.text()
.trim();
$parentSubMenus.each(function(i, el) {
crumbs.push($(el).siblings('.forum-nav-browse-title')
.first()
crumbs.push($(
$(el).siblings('.forum-nav-browse-title')
.first().contents().last()
)
.text()
.trim()
);
......
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