diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-02-06 01:23:39 +0100 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-02-06 01:23:39 +0100 |
commit | 42cdc9f04fe71909a82faf17babb6e403c5e593e (patch) | |
tree | 416625b6f2b511f9b84b4ff05228b3b24f747f27 | |
parent | 78d875c60ffd4c792ee6a387a9e196610804836d (diff) | |
parent | fbc3210184475a7f789fe20d6817a3820ce7d675 (diff) | |
download | nextcloud-server-42cdc9f04fe71909a82faf17babb6e403c5e593e.tar.gz nextcloud-server-42cdc9f04fe71909a82faf17babb6e403c5e593e.zip |
Merge branch 'master' of git.kde.org:owncloud
-rw-r--r-- | plugins/textviewer/textviewer.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/textviewer/textviewer.js b/plugins/textviewer/textviewer.js index 6b031ccd843..f71b63d7c1e 100644 --- a/plugins/textviewer/textviewer.js +++ b/plugins/textviewer/textviewer.js @@ -50,6 +50,14 @@ OC_TextViewer.showText=function(dir,file){ div.setAttribute('class','center'); div.addEvent('onclick',OC_TextViewer.hideText) OC_TextViewer.textFrame=document.createElement('div'); + OC_TextViewer.textFrame.addEvent('onclick',function(e){ + if(window.event = true){ + window.event.cancelBubble = true; + } + if(e.stopPropagation){ + e.stopPropagation(); + } + }); OC_TextViewer.textFrame.pre=document.createElement('pre'); div.appendChild(OC_TextViewer.textFrame); OC_TextViewer.textFrame.appendChild(OC_TextViewer.textFrame.pre); |