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:
parent
947438852d
commit
63e089ec22
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue