From 28680b42b6b38dcf7d8d7d8916ab948b7498ea04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=AE=E7=85=A7=E8=BF=9B?= Date: Wed, 8 Mar 2017 21:19:38 +0800 Subject: [PATCH] =?UTF-8?q?[=E2=80=9C=E6=8D=95=E8=8E=B7=E5=B1=82=E2=80=9C?= =?UTF-8?q?=E4=BD=8E=E7=89=88=E6=9C=ACie=E5=85=BC=E5=AE=B9=E6=80=A7?= =?UTF-8?q?=E8=B0=83=E6=95=B4]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layer.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/layer.js b/src/layer.js index b4f6f4db..d4c97025 100644 --- a/src/layer.js +++ b/src/layer.js @@ -297,7 +297,8 @@ Class.pt.creat = function(){ $('body').append(html[1]); }() : function(){ if(!content.parents('.'+doms[0])[0]){ - content.data('display', content.css('display')).show().addClass('layui-layer-wrap').wrap(html[1]); + // zjruan 20170315 【修改捕获页位置】 移动捕获层到页面底部 + content.data('display', content.css('display')).show().addClass('layui-layer-wrap').after('
').appendTo('body').wrap(html[1]); $('#'+ doms[0] + times).find('.'+doms[5]).before(titleHTML); } }(); @@ -878,7 +879,8 @@ layer.close = function(index){ for(var i = 0; i < 2; i++){ wrap.unwrap(); } - wrap.css('display', wrap.data('display')).removeClass(WRAP); + // zjruan 20170315 【修改捕获页位置】 还原捕获层位置 + wrap.css('display', wrap.data('display')).removeClass(WRAP).replaceAll($('#'+ doms[0] + index +'-placeholder')); } else { //低版本IE 回收 iframe if(type === ready.type[2]){