summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/textviewer/textviewer.js8
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);