瀏覽代碼

Javascript event handling tweaked. (#1928)

Rainer Klute 8 年之前
父節點
當前提交
745e8ee630
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      plugins/org.yakindu.sct.doc.user/js/yakindu.js

+ 1 - 0
plugins/org.yakindu.sct.doc.user/js/yakindu.js

@@ -1,5 +1,6 @@
 function copyPermalinkToClipboard(event, element) {
 function copyPermalinkToClipboard(event, element) {
 	event.preventDefault();
 	event.preventDefault();
+    event.stopPropagation();
     var origin = (window.location.origin != 'null') ? window.location.origin : window.location.href;
     var origin = (window.location.origin != 'null') ? window.location.origin : window.location.href;
     var permalink = origin + window.location.pathname + '#' + jQuery(element).parent().attr('id');
     var permalink = origin + window.location.pathname + '#' + jQuery(element).parent().attr('id');