From 043bb312bcd20c56f5aae61bb4699f5c5be7dbbf Mon Sep 17 00:00:00 2001 From: kkigomi Date: Fri, 12 Jan 2024 20:36:07 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9C=84=EC=A0=AF=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EB=93=B1=EC=9D=98=20=ED=8E=98=EC=9D=B4=EC=A7=80=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=ED=8C=8C=EC=9D=BC=EB=B0=95=EC=8A=A4=EC=97=90=20?= =?UTF-8?q?=EC=97=85=EB=A1=9C=EB=93=9C=20=ED=9B=84=20=EB=AC=B8=EC=A0=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/js/plugins/filebox/filebox.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/js/plugins/filebox/filebox.js b/common/js/plugins/filebox/filebox.js index 23c984ce6..e3f038bf3 100644 --- a/common/js/plugins/filebox/filebox.js +++ b/common/js/plugins/filebox/filebox.js @@ -136,7 +136,11 @@ jQuery(document).ready(function($){ $iframe.attr('src', '#'); $iframe.attr('name', 'iframeTarget'); $iframe.load(function(){ - var data = eval('(' + $(window.iframeTarget.document.getElementsByTagName("body")[0]).html() + ')'); + var content = window.iframeTarget.document.getElementsByTagName('pre'); + if (!content) { + content = window.iframeTarget.document.getElementsByTagName('body'); + } + var data = eval('(' + $(content).html() + ')'); if (data.error){ alert(data.message);