Fix #5: Show pointer cursor.

This commit is contained in:
David Molineus
2018-02-12 13:23:18 +01:00
parent b6418dd2de
commit 229ff66f98
2 changed files with 4 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ $GLOBALS['TL_JAVASCRIPT'][] = 'bundles/leafletgeocodewidget/js/geocode.widget.js
onfocus="Backend.getScrollOffset()"
>
<img src="bundles/leafletgeocodewidget/img/map.png" id="ctrl_<?= $this->id ?>_toggle">
<a href="#"><img src="bundles/leafletgeocodewidget/img/map.png" id="ctrl_<?= $this->id ?>_toggle"></a>
</div>
<?= $this->wizard ?>

View File

@@ -143,7 +143,9 @@ var LeafletGeocodeWidget = L.Class.extend({
}
}
},
_showMap: function () {
_showMap: function (e) {
e.stop();
// Create modal window.
var content = L.Util.template(this.options.mapTemplate, this.options);
this.modal = this._createModal();