Commit eee369fc by Simon Chen

Fix breadcrumb display so it does not include parent node texts

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