diff --git a/source/javascripts/app/_toc.js b/source/javascripts/app/_toc.js index f1937bc..bcdd1fc 100644 --- a/source/javascripts/app/_toc.js +++ b/source/javascripts/app/_toc.js @@ -3,6 +3,7 @@ ;(function () { 'use strict'; + var htmlPattern = /<[^>]*>/g; var loaded = false; var debounce = function(func, waitTime) { @@ -66,6 +67,7 @@ } var $best = $toc.find("[href='" + best + "']").first(); + var joinedTitle = $best.data("title") + " – " + originalTitle; if (!$best.hasClass("active")) { // .active is applied to the ToC link we're currently on, and its parent