diff options
-rw-r--r-- | loleaflet/src/control/Control.JSDialog.js | 5 | ||||
-rw-r--r-- | loleaflet/src/layer/tile/TileLayer.js | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/loleaflet/src/control/Control.JSDialog.js b/loleaflet/src/control/Control.JSDialog.js index d872c2e5a1..5c5d88f286 100644 --- a/loleaflet/src/control/Control.JSDialog.js +++ b/loleaflet/src/control/Control.JSDialog.js @@ -18,9 +18,10 @@ L.Control.JSDialog = L.Control.extend({ this.map.off('jsdialog', this.onJSDialog, this); }, - onJSDialog: function(data) { + onJSDialog: function(e) { var posX = 0; var posY = 0; + var data = e.data; if (this.dialogs[data.id]) { posX = this.dialogs[data.id].startX; @@ -120,4 +121,4 @@ L.Control.JSDialog = L.Control.extend({ L.control.jsDialog = function (options) { return new L.Control.JSDialog(options); -};
\ No newline at end of file +}; diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js index 60b531ae48..39ded06a40 100644 --- a/loleaflet/src/layer/tile/TileLayer.js +++ b/loleaflet/src/layer/tile/TileLayer.js @@ -1063,7 +1063,7 @@ L.TileLayer = L.GridLayer.extend({ if (msgData.jsontype === 'autofilter') { this._map.fire('autofilterdropdown', msgData); } else if (msgData.jsontype === 'dialog') { - this._map.fire('jsdialog', msgData); + this._map.fire('jsdialog', {data: msgData}); } else if (msgData.jsontype === 'notebookbar' || msgData.type === 'borderwindow') { window.notebookbarId = msgData.id; for (var i = 0; i < msgData.children.length; i++) { |