[Libreoffice-commits] online.git: loleaflet/src
Mihai Varga
mihai.varga at collabora.com
Mon Jul 13 09:17:09 PDT 2015
loleaflet/src/control/Control.Parts.js | 2 +-
loleaflet/src/control/Parts.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 786432b9848e22c81a6f2f4c7e8178d83e1166b8
Author: Mihai Varga <mihai.varga at collabora.com>
Date: Mon Jul 13 19:16:46 2015 +0300
loleaflet: renamed 'previous' to 'prev'
diff --git a/loleaflet/src/control/Control.Parts.js b/loleaflet/src/control/Control.Parts.js
index 07f67f1..cc36f80 100644
--- a/loleaflet/src/control/Control.Parts.js
+++ b/loleaflet/src/control/Control.Parts.js
@@ -26,7 +26,7 @@ L.Control.Parts = L.Control.extend({
},
_prevPart: function () {
- this._map.setPart('previous');
+ this._map.setPart('prev');
},
_nextPart: function () {
diff --git a/loleaflet/src/control/Parts.js b/loleaflet/src/control/Parts.js
index 69d9e83..84e9014 100644
--- a/loleaflet/src/control/Parts.js
+++ b/loleaflet/src/control/Parts.js
@@ -4,7 +4,7 @@
L.Map.include({
setPart: function (part) {
var docLayer = this._docLayer
- if (part === 'previous') {
+ if (part === 'prev') {
if (docLayer._currentPart > 0) {
docLayer._currentPart -= 1;
}
More information about the Libreoffice-commits
mailing list