From: Vincent Vanwaelscappel Date: Fri, 2 Feb 2018 17:43:14 +0000 (+0100) Subject: done #1925 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=60badb22daaa6f17fe87f98e0905dbfb6c54e066;p=fluidbook-html5.git done #1925 @0.5 --- diff --git a/js/libs/fluidbook/menu/fluidbook.chapters.js b/js/libs/fluidbook/menu/fluidbook.chapters.js index 34d0bce2..10b7b595 100644 --- a/js/libs/fluidbook/menu/fluidbook.chapters.js +++ b/js/libs/fluidbook/menu/fluidbook.chapters.js @@ -21,7 +21,7 @@ FluidbookChapters.prototype = { if (this.html[sub] == null) { this.makeView(sub); } - return {sub:sub,view: this.html[sub], title: this.titles[sub], color: this.colors[sub]}; + return {sub: sub, view: this.html[sub], title: this.titles[sub], color: this.colors[sub]}; }, makeView: function (sub) { this.makeClassicMenu(sub); @@ -137,6 +137,7 @@ FluidbookChapters.prototype = { chapter.level = '-1'; } + chapter.label = chapter.label.replace(/\*([^\*]+)\*/g, '$1'); var res = ''; var href;