loleaflet: No native contextmenu options on dialog canvas

Dialogs can have their own context menu invoked upon right click. And
they already works (i.e. are tunneled properly); so, let's use them.

Change-Id: I7d504923c272227dca94058995456d89e1079c29
This commit is contained in:
Pranav Kant 2018-01-18 12:27:52 +05:30
parent 947438852d
commit 63e089ec22

View file

@ -192,6 +192,8 @@ L.Control.LokDialog = L.Control.extend({
dialogCanvas.contentEditable = true;
dialogCanvas.id = strDlgId + '-canvas';
L.DomEvent.on(dialogCanvas, 'contextmenu', L.DomEvent.preventDefault);
var that = this;
$(dialogContainer).dialog({
width: width,