Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[“捕获层“低版本ie兼容性调整] #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('<div id="'+ doms[0] + times +'-placeholder"></div>').appendTo('body').wrap(html[1]);
$('#'+ doms[0] + times).find('.'+doms[5]).before(titleHTML);
}
}();
Expand Down Expand Up @@ -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]){
Expand Down