From b59a83a2eddf47ac4fb0208380a8c9a222095afd Mon Sep 17 00:00:00 2001 From: liuz Date: Fri, 27 Jul 2018 14:17:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E7=AE=A1=E7=90=86IE=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebContent/Frame/page/js/as_control.js | 3 ++- WebContent/Frame/page/js/as_treeview.js | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/WebContent/Frame/page/js/as_control.js b/WebContent/Frame/page/js/as_control.js index 9f7c84458..ddc954098 100644 --- a/WebContent/Frame/page/js/as_control.js +++ b/WebContent/Frame/page/js/as_control.js @@ -325,7 +325,8 @@ AsControl.switchDiv = function(sTargetWindow) { } var doc = frame.document; if(!doc || !doc.body) return; - if($("#switch_page_mask", doc).length == 1) return; + //if($("#switch_page_mask", doc).length == 1) return; + if(document.getElementById("#switch_page_mask") != null) return; var width = Math.max(doc.body.scrollWidth, doc.documentElement.scrollWidth);//-20; var height = Math.max(doc.body.scrollHeight, doc.documentElement.scrollHeight);//-20; var board = $("
"+ diff --git a/WebContent/Frame/page/js/as_treeview.js b/WebContent/Frame/page/js/as_treeview.js index 9a685a783..e65692921 100644 --- a/WebContent/Frame/page/js/as_treeview.js +++ b/WebContent/Frame/page/js/as_treeview.js @@ -301,6 +301,9 @@ function imageAppearance(currentIndex) { } function drawMenu() { + if(left.document == null) { + left.document = left.contentDocument ? left.contentDocument : left.ownerDocument; + } drawMenu2(left.document); $(function(){ if(typeof window.keydownAction != "function") return;