X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/84196c824e6a337a58b9c0a00c124c5e629d02b4..f0a4549eb9a1adc546f31c3e8b0c5958fbc28edd:/modules/documentCanvas/canvas/widgets.js?ds=inline diff --git a/modules/documentCanvas/canvas/widgets.js b/modules/documentCanvas/canvas/widgets.js index cedf16d..570bd0b 100644 --- a/modules/documentCanvas/canvas/widgets.js +++ b/modules/documentCanvas/canvas/widgets.js @@ -17,7 +17,8 @@ return { .css('display', 'inline') .show(); - mydom.click(function() { + mydom.click(function(e) { + e.stopPropagation(); clickHandler(); }); @@ -27,7 +28,10 @@ return { hideButton: function(clickHandler) { var mydom = $('x') .addClass('canvas-widget canvas-widget-hide-button'); - mydom.click(clickHandler); + mydom.click(function(e) { + e.stopPropagation(); + clickHandler(); + }); return mydom; }