[Libreoffice-commits] online.git: Branch 'distro/collabora/milestone-7' - loleaflet/src
Marco Cecchetti
marco.cecchetti at collabora.com
Fri Feb 5 16:49:35 UTC 2016
loleaflet/src/layer/tile/TileLayer.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit ceedd477e59827c5c5c46069f96ed475aef765ff
Author: Marco Cecchetti <marco.cecchetti at collabora.com>
Date: Fri Feb 5 17:47:43 2016 +0100
loleaflet: now the 'search' event has a 'highlightAll' property
Change-Id: I2fffe54d1474d4dea3fd2d69f5cadc8ff7a0f459
diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index f776337..5b5a206 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -519,6 +519,7 @@ L.TileLayer = L.GridLayer.extend({
var obj = JSON.parse(textMsg);
var originalPhrase = obj.searchString;
var count = obj.searchResultSelection.length;
+ var highlightAll = obj.highlightAll;
var results = [];
for (var i = 0; i < obj.searchResultSelection.length; i++) {
results.push({
@@ -536,7 +537,7 @@ L.TileLayer = L.GridLayer.extend({
this._map.setPart(results[0].part); // go to first result.
}
this._searchTerm = originalPhrase;
- this._map.fire('search', {originalPhrase: originalPhrase, count: count, results: results});
+ this._map.fire('search', {originalPhrase: originalPhrase, count: count, highlightAll: highlightAll, results: results});
},
_clearSearchResults: function() {
More information about the Libreoffice-commits
mailing list