Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_web
check
Commits
702705f6
Commit
702705f6
authored
Sep 17, 2015
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
閲覧ログが二重で記録される問題対応
parent
142e3a9d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
8 deletions
+21
-8
abvw/common/js/avweb.js
+1
-1
abvw/common/js/common.js
+20
-7
No files found.
abvw/common/js/avweb.js
View file @
702705f6
...
...
@@ -906,7 +906,7 @@ AVWEB.avwSetLogoutNortice = function() {
if
(
"CONTENTVIEW_GENERAL"
in
window
){
if
(
CONTENTVIEW_GENERAL
.
contentID
!=
null
){
COMMON
.
SetEndLog
(
CONTENTVIEW_GENERAL
.
contentID
);
COMMON
.
RegisterLog
();
COMMON
.
RegisterLog
(
true
);
}
}
}
else
{
...
...
abvw/common/js/common.js
View file @
702705f6
...
...
@@ -8,6 +8,8 @@
//グローバルの名前空間用のオブジェクトを用意する
var
COMMON
=
{};
COMMON
.
registerLogBusyFlag
=
false
;
COMMON
.
resourceVersionArr
=
[];
COMMON
.
metaVersionArr
=
[];
...
...
@@ -2490,14 +2492,23 @@ COMMON.SetObjectLogActionTime = function( strContentId, objectId, actionTime ){
/*
Register reading log of content to server by calling api
*/
COMMON
.
RegisterLog
=
function
(
is
)
{
var
arrContentLogs
=
ClientData
.
ContentLogData
();
var
isError
=
false
;
COMMON
.
RegisterLog
=
function
(
isUnload
)
{
for
(
var
nIndex
=
0
;
nIndex
<
arrContentLogs
.
length
;
nIndex
++
)
{
var
dateEnd
=
new
Date
(
arrContentLogs
[
nIndex
].
readingEndDate
);
var
dateStart
=
new
Date
(
arrContentLogs
[
nIndex
].
readingStartDate
);
if
(
isUnload
==
null
){
isUnload
=
false
;
}
var
arrContentLogs
=
ClientData
.
ContentLogData
();
//ブラウザ閉じる場合は重複を回避するためログデータ先に削除
if
(
isUnload
){
ClientData
.
ContentLogData
([]);
}
var
isError
=
false
;
for
(
var
nIndex
=
0
;
nIndex
<
arrContentLogs
.
length
;
nIndex
++
)
{
var
dateEnd
=
new
Date
(
arrContentLogs
[
nIndex
].
readingEndDate
);
var
dateStart
=
new
Date
(
arrContentLogs
[
nIndex
].
readingStartDate
);
//ページログJSONデータの作成
var
pageLogJson
=
""
;
...
...
@@ -2646,6 +2657,7 @@ COMMON.RegisterLog = function(is) {
}
);
};
if
(
AVWEB
.
avwHasError
())
{
return
;
}
...
...
@@ -2662,6 +2674,7 @@ COMMON.RegisterLog = function(is) {
}
ClientData
.
ContentLogData
(
arrTarget
);
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment