]> _ Git - fluidbook-html5.git/commitdiff
wait #4366 @0.75
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 23 Mar 2021 17:22:44 +0000 (18:22 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 23 Mar 2021 17:22:44 +0000 (18:22 +0100)
js/libs/fluidbook/fluidbook.contentlock.js
js/libs/fluidbook/fluidbook.links.js
js/libs/fluidbook/menu/fluidbook.index.js

index 38bcb8841ec7cce70c89a14c55a373dc0183c523..f91cca5ed2b487123dc1ebc59bcccb7e38dfafa9 100644 (file)
@@ -78,6 +78,8 @@ FluidbookContentLock.prototype = {
             }
         );
 
+        this.fluidbook.menu.index.reset();
+
         this.fluidbook.hideUnnecessaryButtons();
         this.fluidbook.mobilefirst.refreshFooterNavigation();
         resize();
index a0975860ba4b0d2ee6df80a5e04830f64537e6ef..91b344ee48ccbb731244f1dba19b09d1f60a7193 100644 (file)
@@ -276,7 +276,6 @@ FluidbookLinks.prototype = {
 
     handleExternalHref: function (link) {
         var href = $(link).is('[data-pseudolink-href]') ? $(link).data('pseudolink-href') : $(link).attr('href');
-        ;
         var change = false;
         if (this.fluidbook.stats.relay_url_params !== '' && !$(link).hasClass('relay_appended')) {
             $(link).addClass('relay_appended');
index 1ca007b78f0e30e841acefd26e0376ff4896e282..3cbfc9d9fd7f82a57aa981d444a0406275610b2b 100644 (file)
@@ -54,6 +54,11 @@ FluidbookIndex.prototype = {
         }
     },
 
+    reset: function () {
+        this.normalHTML = '';
+        this.padHTML = '';
+    },
+
     getNormalView: function (forceNormal) {
         if (this.normalHTML === '') {
             this.normalHTML = this._getNormalView();