통합인증 : 브라우저로 접근한 모바일에서도 정상적으로 작동하게끔 스크립트 수정
This commit is contained in:
@ -128,11 +128,6 @@ function popup_center() {
|
|||||||
let _width = 400;
|
let _width = 400;
|
||||||
let _height = 620;
|
let _height = 620;
|
||||||
var xPos = (document.body.offsetWidth/2) - (_width/2); // 가운데 정렬
|
var xPos = (document.body.offsetWidth/2) - (_width/2); // 가운데 정렬
|
||||||
xPos += window.screenLeft; // 듀얼 모니터일 때
|
xPos += window.screenLeft; // 듀얼 모니터일 때
|
||||||
if( navigator.userAgent.indexOf("Android") > - 1 || navigator.userAgent.indexOf("iPhone") > - 1 ) // 모바일일때
|
|
||||||
{
|
|
||||||
return window;
|
|
||||||
}else {
|
|
||||||
return window.open("", "sa_popup", "width="+_width+", height="+_height+", left="+xPos+", menubar=yes, status=yes, titlebar=yes, resizable=yes");
|
return window.open("", "sa_popup", "width="+_width+", height="+_height+", left="+xPos+", menubar=yes, status=yes, titlebar=yes, resizable=yes");
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@ -92,7 +92,6 @@ if ($config['cf_cert_use'] && ($config['cf_cert_sa'] || $config['cf_cert_ipin']
|
|||||||
params = "?directAgency=" + type + "&" + pageTypeParam;
|
params = "?directAgency=" + type + "&" + pageTypeParam;
|
||||||
request_url = url + params;
|
request_url = url + params;
|
||||||
call_sa(request_url);
|
call_sa(request_url);
|
||||||
break;
|
|
||||||
});
|
});
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
|||||||
@ -91,12 +91,6 @@ include_once(G5_PATH.'/head.sub.php');
|
|||||||
<script>
|
<script>
|
||||||
jQuery(function($) {
|
jQuery(function($) {
|
||||||
var $opener = window.opener;
|
var $opener = window.opener;
|
||||||
if (typeof g5_is_mobile != "undefined" && g5_is_mobile ) {
|
|
||||||
$opener = window.parent;
|
|
||||||
is_mobile = true;
|
|
||||||
} else {
|
|
||||||
$opener = window.opener;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 인증정보
|
// 인증정보
|
||||||
$opener.$("input[name=cert_type]").val("<?php echo $cert_type; ?>");
|
$opener.$("input[name=cert_type]").val("<?php echo $cert_type; ?>");
|
||||||
|
|||||||
Reference in New Issue
Block a user