height = $(this).scrollTop(); //打開子頁面時記住父頁面滑動的位置,用於回到最初的位置
art.dialog.data('height', height); //父頁面和子頁面數值之間的傳遞
//禁止滾動條
$(document.body).css({
// "overflow-x":"hidden",
"height":"100%",
"overflow":"hidden",
"position":"fixed"
});
//$("body").bind("touchmove",function(event){event.preventDefault;});
art.dialog.open('queryImageManageByChooseCut.htm?size=10000', {
lock: true,
opacity: 0.3,
width: '100%',
height: '100%',
title: '選擇圖片'
});
var win = art.dialog.open.origin;//來源頁面
//啓用滾動條
$(win.document.body).css({
// "overflow-x":"auto",
"height":"100%",
"overflow":"auto",
"position":"unset"
});
win.scrollTo(0,art.dialog.data('height')); //父頁面回到最初位置