diff --git a/FO/Views/CDMS/Contents.cshtml b/FO/Views/CDMS/Contents.cshtml
index 8ed0f10..b4aba38 100644
--- a/FO/Views/CDMS/Contents.cshtml
+++ b/FO/Views/CDMS/Contents.cshtml
@@ -123,7 +123,7 @@
}
function closestudy() {
if (!_passunload && @Model.istaste != 1 && !_islogout) {
- golog(false, true, false, false);
+ golog(false, true, false, true);
_passunload = true;
}
self.close();
@@ -359,12 +359,12 @@
resizeme();
//}
}
- function golog(ispaging, isunload, isinning, async) {
+ function golog(ispaging, isunload, isinning, sync) {
ispaging = ispaging || false;
isunload = isunload || false;
isinning = isinning || false;
- async = async || true;
+ sync = sync || false;
_tsec++;
if (!ispaging && !isunload && !isinning) {
_sec++;
@@ -387,7 +387,7 @@
_psecond = getint($("#video1")[0].currentTime);
}
} catch (e) { }
- capp("/focommon/studylog", { logno: _logno, lectno: @Model.lip.lectno, cmino: @Model.lip.cmino, cpno: _cpno, studysec: _sec, ispc: ismobile() ? 0 : 1, nextcpno: ispaging ? _nextcpno : 0, getiframe: @(Model.CMInning.ismenu == 1 && Model.CMInning.ctype == 2 ? 1 : 0), issample: @Model.istaste, psec: _psecond }, "cbstudylog" + (ispaging ? "page" : "") + (isunload ? "unload" : "") + (isinning ? "inning" : ""), null, null, true, null, true, async);
+ capp("/focommon/studylog", { logno: _logno, lectno: @Model.lip.lectno, cmino: @Model.lip.cmino, cpno: _cpno, studysec: _sec, ispc: ismobile() ? 0 : 1, nextcpno: ispaging ? _nextcpno : 0, getiframe: @(Model.CMInning.ismenu == 1 && Model.CMInning.ctype == 2 ? 1 : 0), issample: @Model.istaste, psec: _psecond }, "cbstudylog" + (ispaging ? "page" : "") + (isunload ? "unload" : "") + (isinning ? "inning" : ""), null, null, true, null, true, null, sync);
} else if (_mtime > 0 && !_okmid && _tsec >= _mtime && _mtimesec < 1) {
//clearInterval(_timerlog);
_mtimesec = 1;
@@ -540,17 +540,10 @@
window.onbeforeunload = function () {
if (!_passunload && @Model.istaste != 1 && !_islogout) {
clearInterval(_timerlog);
- //if (_isie) {
- // var retmsg = golog(false, true);
- // event.returnValue = retmsg;
- // return retmsg;
- //}
- //else {
- //if (opener && (opener._cdmsisopenning || 0) == 0) {
- opener.location.href = opener.location.href.replace(/#/gi, '');
- //}
- golog(false, true, false, false);
- //}
+ golog(false, true, false, true);
+ }
+ if (opener) {
+ opener.location.href = opener.location.href.replace(/#/gi, '');
}
}
var _ispre = false;
diff --git a/FO/js/site.js b/FO/js/site.js
index 66a9192..7a628b7 100644
--- a/FO/js/site.js
+++ b/FO/js/site.js
@@ -602,11 +602,11 @@ function cap(url, formid, callback, getpost, autoMsg, noBG, jsislayer2) {
console.log("다른 작업을 처리중입니다. 잠시후 다시 작업해주세요.");
}
}
-function capp(url, p, callback, getpost, autoMsg, noBG, jsislayer2, hideBG, noerror, async) {
+function capp(url, p, callback, getpost, autoMsg, noBG, jsislayer2, hideBG, noerror, sync) {
_jsislayer2 = jsislayer2 || false;
_noerror = noerror || false;
_hideBG = hideBG || false;
- _async = async || true;
+ _async = !(sync || false);
if (!isCaping) {
isAutoMsg = autoMsg || false;
_bging = noBG || false;