[Libreoffice-commits] online.git: loleaflet/debug loleaflet/src

Henry Castro hcastro at collabora.com
Sun Nov 8 09:27:08 PST 2015


 loleaflet/debug/document/document_simple_example.html |    1 -
 loleaflet/src/layer/tile/CalcTileLayer.js             |    1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a01d56ed116ea7ba13a58690601b722f825bd8a0
Author: Henry Castro <hcastro at collabora.com>
Date:   Sun Nov 8 13:22:58 2015 -0400

    loleaflet: move control tabs creation
    
    Create control tabs if and only if spreadsheet document.

diff --git a/loleaflet/debug/document/document_simple_example.html b/loleaflet/debug/document/document_simple_example.html
index 166b8e1..13f6bd6 100644
--- a/loleaflet/debug/document/document_simple_example.html
+++ b/loleaflet/debug/document/document_simple_example.html
@@ -77,6 +77,5 @@
     globalMap.addControl(L.control.insertImg());
     globalMap.addControl(L.control.dialog());
     globalMap.addControl(L.control.partsPreview());
-    globalMap.addControl(L.control.tabs());
     </script>
 </body></html>
diff --git a/loleaflet/src/layer/tile/CalcTileLayer.js b/loleaflet/src/layer/tile/CalcTileLayer.js
index ba72c70..b34e930 100644
--- a/loleaflet/src/layer/tile/CalcTileLayer.js
+++ b/loleaflet/src/layer/tile/CalcTileLayer.js
@@ -10,6 +10,7 @@ L.CalcTileLayer = L.TileLayer.extend({
                 this._rows = L.control.rowHeader();
                 map.addControl(this._columns);
                 map.addControl(this._rows);
+                map.addControl(L.control.tabs());
         },
 
 	_onInvalidateTilesMsg: function (textMsg) {


More information about the Libreoffice-commits mailing list