summaryrefslogtreecommitdiff
path: root/loleaflet/src/control/Control.LokDialog.js
diff options
context:
space:
mode:
Diffstat (limited to 'loleaflet/src/control/Control.LokDialog.js')
-rw-r--r--loleaflet/src/control/Control.LokDialog.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/loleaflet/src/control/Control.LokDialog.js b/loleaflet/src/control/Control.LokDialog.js
index 7ac61c241..2e1e52d90 100644
--- a/loleaflet/src/control/Control.LokDialog.js
+++ b/loleaflet/src/control/Control.LokDialog.js
@@ -224,7 +224,6 @@ L.Control.LokDialog = L.Control.extend({
}
e.id = parseInt(e.id);
- window.sidebarId = e.id;
var strId = this._toStrId(e.id);
var width = 0;
@@ -255,6 +254,7 @@ L.Control.LokDialog = L.Control.extend({
if (!window.mode.isMobile()) {
this._launchSidebar(e.id, width, height);
} else {
+ // In mobile we get jsdialog messages.
window.sidebarId = e.id;
}
} else if (e.winType === 'child') {