From: Vincent Vanwaelscappel Date: Thu, 21 Jun 2018 10:16:28 +0000 (+0200) Subject: fix #2111 @0.75 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=1761b3ba2ab92023384af39f75858132ff97ce41;p=fluidbook-html5.git fix #2111 @0.75 --- diff --git a/js/libs/fluidbook/fluidbook.nav.js b/js/libs/fluidbook/fluidbook.nav.js index a58dca8b..65c3edb2 100644 --- a/js/libs/fluidbook/fluidbook.nav.js +++ b/js/libs/fluidbook/fluidbook.nav.js @@ -429,8 +429,8 @@ FluidbookNav.prototype = { }); try { this.fluidbook.cart.instance.updateIcon(); - }catch (e) { - + } catch (e) { + } } else if (icon == 'lang' && this.fluidbook.l10n.multilangEnabled) { // Note: the "!" at the beginning of the title/help parameters means that we don't want these strings translated @@ -520,6 +520,8 @@ FluidbookNav.prototype = { success: function (data) { var n1 = extraNPerURL[this.url]; var svg = $(data).find('svg'); + // Fix #2111 + $(svg).wrapInner(''); var viewbox = $(svg).attr('viewBox'); var maing = $(svg).children('g').eq(0); if ($("#extra-extra" + n1).length == 0) {