loleaflet/src/layer/tile/TileLayer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 2a95b7dea3386b11b89937713c1cd75c96f7fa9d Author: Marco Cecchetti <marco.cecche...@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() { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits