]> _ Git - fluidbook-html5.git/commitdiff
wait #6269 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 15 Sep 2023 09:02:14 +0000 (11:02 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 15 Sep 2023 09:02:14 +0000 (11:02 +0200)
js/libs/fluidbook/fluidbook.search.js

index eb04dc9dc581343f0a6f9c6e0826ad2398cec557..d8113d769ddf29c54b032147390711856e66673f 100644 (file)
@@ -229,10 +229,10 @@ FluidbookSearch.prototype = {
             return callback();
         }
         var $this = this;
-        loadJSLibrary('data/search.index.js?j=' + this.fluidbook.settings.cacheDate, function () {
+        loadJSLibrary($this.fluidbook.loader.getURL('data/search.index.js?j=' + this.fluidbook.settings.cacheDate), function () {
             $this._loadTexts(function () {
                 if ($this.highlightEnabled) {
-                    loadJSLibrary('data/search.highlight.js?j=' + this.fluidbook.settings.cacheDate, function () {
+                    loadJSLibrary($this.fluidbook.loader.getURL('data/search.highlight.js?j=' + this.fluidbook.settings.cacheDate), function () {
                         $this.indexLoaded = true;
                         callback();
                     });
@@ -246,7 +246,7 @@ FluidbookSearch.prototype = {
 
     _loadTexts: function (callback) {
         if (this.fluidbook.settings.searchWordSelectionAlgorithm === 'expression') {
-            loadJSLibrary('data/search.texts.js?j=' + this.fluidbook.settings.cacheDate, function () {
+            loadJSLibrary(this.fluidbook.loader.getURL('data/search.texts.js?j=' + this.fluidbook.settings.cacheDate), function () {
                 callback();
             });
         } else {