[Libreoffice-commits] online.git: loleaflet/src
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Mar 7 14:28:17 UTC 2019
loleaflet/src/layer/tile/CalcTileLayer.js | 32 ---------------------------
loleaflet/src/layer/tile/ImpressTileLayer.js | 29 ------------------------
loleaflet/src/layer/tile/WriterTileLayer.js | 31 --------------------------
3 files changed, 1 insertion(+), 91 deletions(-)
New commits:
commit 3f7fe205bcedc3ec8ea41000580b09e2867a86a0
Author: Henry Castro <hcastro at collabora.com>
AuthorDate: Thu Mar 7 10:09:41 2019 -0400
Commit: Henry Castro <hcastro at collabora.com>
CommitDate: Thu Mar 7 10:27:31 2019 -0400
loleaflet:mobile: remove unused toolbar item's code
Change-Id: I8900c6a945e07fb78dcccd3f2912c9cd2b30f9fd
diff --git a/loleaflet/src/layer/tile/CalcTileLayer.js b/loleaflet/src/layer/tile/CalcTileLayer.js
index a365da514..b7d9783c0 100644
--- a/loleaflet/src/layer/tile/CalcTileLayer.js
+++ b/loleaflet/src/layer/tile/CalcTileLayer.js
@@ -223,38 +223,6 @@ L.CalcTileLayer = L.TileLayer.extend({
window.hideTooltip(this, e.target);
},
onRefresh: function(edata) {
- if (edata.target === 'styles' || edata.target === 'fonts' || edata.target === 'fontsizes') {
- var toolItem = $(this.box).find('#tb_'+ this.name +'_item_'+ w2utils.escapeId(edata.item.id));
- if (edata.item.hidden) {
- toolItem.css('display', 'none');
- } else {
- toolItem.css('display', '');
- }
- window.updateCommandValues(edata.target);
- }
-
- if (edata.target === 'editbar' && map.getDocType() === 'presentation') {
- // Fill the style select box if not yet filled
- if ($('.styles-select')[0] && $('.styles-select')[0].length === 1) {
- var data = [''];
- // Inserts a separator element
- data = data.concat({text: '\u2500\u2500\u2500\u2500\u2500\u2500', disabled: true});
-
- L.Styles.impressLayout.forEach(function(layout) {
- data = data.concat({id: layout.id, text: _(layout.text)});
- }, this);
-
- $('.styles-select').select2({
- data: data,
- placeholder: _UNO('.uno:LayoutStatus', 'presentation')
- });
- $('.styles-select').on('select2:select', window.onStyleSelect);
- }
- }
-
- if (edata.target === 'inserttable')
- window.insertTable();
-
if (edata.target === 'insertshapes')
window.insertShapes();
}
diff --git a/loleaflet/src/layer/tile/ImpressTileLayer.js b/loleaflet/src/layer/tile/ImpressTileLayer.js
index 87e89e899..784c11445 100644
--- a/loleaflet/src/layer/tile/ImpressTileLayer.js
+++ b/loleaflet/src/layer/tile/ImpressTileLayer.js
@@ -205,35 +205,6 @@ L.ImpressTileLayer = L.TileLayer.extend({
window.hideTooltip(this, e.target);
},
onRefresh: function(edata) {
- if (edata.target === 'styles' || edata.target === 'fonts' || edata.target === 'fontsizes') {
- var toolItem = $(this.box).find('#tb_'+ this.name +'_item_'+ w2utils.escapeId(edata.item.id));
- if (edata.item.hidden) {
- toolItem.css('display', 'none');
- } else {
- toolItem.css('display', '');
- }
- window.updateCommandValues(edata.target);
- }
-
- if (edata.target === 'editbar' && map.getDocType() === 'presentation') {
- // Fill the style select box if not yet filled
- if ($('.styles-select')[0] && $('.styles-select')[0].length === 1) {
- var data = [''];
- // Inserts a separator element
- data = data.concat({text: '\u2500\u2500\u2500\u2500\u2500\u2500', disabled: true});
-
- L.Styles.impressLayout.forEach(function(layout) {
- data = data.concat({id: layout.id, text: _(layout.text)});
- }, this);
-
- $('.styles-select').select2({
- data: data,
- placeholder: _UNO('.uno:LayoutStatus', 'presentation')
- });
- $('.styles-select').on('select2:select', window.onStyleSelect);
- }
- }
-
if (edata.target === 'inserttable')
window.insertTable();
diff --git a/loleaflet/src/layer/tile/WriterTileLayer.js b/loleaflet/src/layer/tile/WriterTileLayer.js
index ed002aa7a..9883b7e81 100644
--- a/loleaflet/src/layer/tile/WriterTileLayer.js
+++ b/loleaflet/src/layer/tile/WriterTileLayer.js
@@ -3,7 +3,7 @@
* Writer tile layer is used to display a text document
*/
-/* global $ _ w2ui w2utils _UNO */
+/* global $ _ w2ui _UNO */
L.WriterTileLayer = L.TileLayer.extend({
newAnnotation: function (comment) {
@@ -144,35 +144,6 @@ L.WriterTileLayer = L.TileLayer.extend({
window.hideTooltip(this, e.target);
},
onRefresh: function(edata) {
- if (edata.target === 'styles' || edata.target === 'fonts' || edata.target === 'fontsizes') {
- var toolItem = $(this.box).find('#tb_'+ this.name +'_item_'+ w2utils.escapeId(edata.item.id));
- if (edata.item.hidden) {
- toolItem.css('display', 'none');
- } else {
- toolItem.css('display', '');
- }
- window.updateCommandValues(edata.target);
- }
-
- if (edata.target === 'editbar' && map.getDocType() === 'presentation') {
- // Fill the style select box if not yet filled
- if ($('.styles-select')[0] && $('.styles-select')[0].length === 1) {
- var data = [''];
- // Inserts a separator element
- data = data.concat({text: '\u2500\u2500\u2500\u2500\u2500\u2500', disabled: true});
-
- L.Styles.impressLayout.forEach(function(layout) {
- data = data.concat({id: layout.id, text: _(layout.text)});
- }, this);
-
- $('.styles-select').select2({
- data: data,
- placeholder: _UNO('.uno:LayoutStatus', 'presentation')
- });
- $('.styles-select').on('select2:select', window.onStyleSelect);
- }
- }
-
if (edata.target === 'inserttable')
window.insertTable();
More information about the Libreoffice-commits
mailing list