aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/js/app.js')
-rw-r--r--frontend/js/app.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/frontend/js/app.js b/frontend/js/app.js
index 9ce073e..f532bc1 100644
--- a/frontend/js/app.js
+++ b/frontend/js/app.js
@@ -150,7 +150,15 @@ function open(row, column, event) {
150 app.activeEntry.fullPath = encode(sanitize(app.path + '/' + row.filePath)); 150 app.activeEntry.fullPath = encode(sanitize(app.path + '/' + row.filePath));
151 app.previewDrawerVisible = true 151 app.previewDrawerVisible = true
152 152
153 // window.open(encode(path)); 153 // need to wait for DOM element to exist
154 setTimeout(function () {
155 $('iframe').on('load', function (e) {
156 if (!e.target.contentWindow.document.body) return;
157
158 e.target.contentWindow.document.body.style.display = 'flex'
159 e.target.contentWindow.document.body.style.justifyContent = 'center'
160 });
161 }, 0);
154} 162}
155 163
156function uploadFiles(files) { 164function uploadFiles(files) {