diff --git a/FO/Views/CDMS/Contents.cshtml b/FO/Views/CDMS/Contents.cshtml index b05937d..8ed0f10 100644 --- a/FO/Views/CDMS/Contents.cshtml +++ b/FO/Views/CDMS/Contents.cshtml @@ -122,7 +122,7 @@ } } function closestudy() { - if (!_passunload && _istaste != 1 && !_islogout) { + if (!_passunload && @Model.istaste != 1 && !_islogout) { golog(false, true, false, false); _passunload = true; } @@ -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, async); } else if (_mtime > 0 && !_okmid && _tsec >= _mtime && _mtimesec < 1) { //clearInterval(_timerlog); _mtimesec = 1; diff --git a/FO/Views/CDMS/Contents2.cshtml b/FO/Views/CDMS/Contents2.cshtml index 65b7f73..fa2b2a0 100644 --- a/FO/Views/CDMS/Contents2.cshtml +++ b/FO/Views/CDMS/Contents2.cshtml @@ -131,12 +131,12 @@ } } function closestudy() { - if (!_passunload && _istaste != 1 && !_islogout) { + if (!_passunload && @Model.istaste != 1 && !_islogout) { golog(false, true); _passunload = true; } self.close(); - } + } $(window).load(function () { if (@Model.status == 0) { _passunload = true;