mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
don't hide text viewer when clicking inside the text box
This commit is contained in:
parent
7351528431
commit
fbc3210184
1 changed files with 8 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue