]> _ Git - fluidbook-html5.git/commitdiff
fix #1705 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 5 Oct 2017 15:29:24 +0000 (17:29 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 5 Oct 2017 15:29:24 +0000 (17:29 +0200)
js/libs/fluidbook/fluidbook.search.js

index 6e145cbaa91592bc10867f5d653266c2d59a0512..d17276d3b5a54e90542a17deb50e6358ebcc453d 100644 (file)
@@ -245,6 +245,10 @@ FluidbookSearch.prototype = {
             }
         }
 
+        if(this.fluidbook.l10n.dir=='rtl'){
+            pageNrs.reverse();
+        }
+
         for (var i in this.highlights) {
             var h = this.highlights[i];
             for (var j in h.occurences) {