summaryrefslogtreecommitdiffstats
path: root/apps/files_pdfviewer/js
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-01-14 22:25:07 +0100
committerRobin Appelman <icewind@owncloud.com>2012-01-14 22:25:07 +0100
commit0615d096cea5af65291f040bb287e45ea1b0d02c (patch)
treeae1ef0e84009c131be745f94f5289b241bcb86a0 /apps/files_pdfviewer/js
parent36a2649e371093eb9961c5ee95fd75ded98c9394 (diff)
downloadnextcloud-server-0615d096cea5af65291f040bb287e45ea1b0d02c.tar.gz
nextcloud-server-0615d096cea5af65291f040bb287e45ea1b0d02c.zip
make pdf viewer work with text editor
Diffstat (limited to 'apps/files_pdfviewer/js')
-rwxr-xr-xapps/files_pdfviewer/js/viewer.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_pdfviewer/js/viewer.js b/apps/files_pdfviewer/js/viewer.js
index 03288ebe420..7f6766c67dd 100755
--- a/apps/files_pdfviewer/js/viewer.js
+++ b/apps/files_pdfviewer/js/viewer.js
@@ -4,8 +4,10 @@ function hidePDFviewer() {
$('#controls').html(showPDFviewer.oldcode);
$("#viewer").remove();
$("#loading").remove()
+ $("#editor").show();
document.title = showPDFviewer.lastTitle;
PDFView.active=false;
+ $('iframe').remove();
}
function showPDFviewer(dir,filename){