]> _ Git - fluidbook-html5.git/commitdiff
fix #2111 @0.75
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 21 Jun 2018 10:16:28 +0000 (12:16 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 21 Jun 2018 10:16:28 +0000 (12:16 +0200)
js/libs/fluidbook/fluidbook.nav.js

index a58dca8bd8a35228585972557e03b035836e3a47..65c3edb26e0444eb7eda13b9ded3df57e5d9ee7d 100644 (file)
@@ -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('<g />');
                                     var viewbox = $(svg).attr('viewBox');
                                     var maing = $(svg).children('g').eq(0);
                                     if ($("#extra-extra" + n1).length == 0) {