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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
abvw/common/js/avweb.js
+1
-1
abvw/common/js/common.js
+15
-2
No files found.
abvw/common/js/avweb.js
View file @
702705f6
...
@@ -906,7 +906,7 @@ AVWEB.avwSetLogoutNortice = function() {
...
@@ -906,7 +906,7 @@ AVWEB.avwSetLogoutNortice = function() {
if
(
"CONTENTVIEW_GENERAL"
in
window
){
if
(
"CONTENTVIEW_GENERAL"
in
window
){
if
(
CONTENTVIEW_GENERAL
.
contentID
!=
null
){
if
(
CONTENTVIEW_GENERAL
.
contentID
!=
null
){
COMMON
.
SetEndLog
(
CONTENTVIEW_GENERAL
.
contentID
);
COMMON
.
SetEndLog
(
CONTENTVIEW_GENERAL
.
contentID
);
COMMON
.
RegisterLog
();
COMMON
.
RegisterLog
(
true
);
}
}
}
}
}
else
{
}
else
{
...
...
abvw/common/js/common.js
View file @
702705f6
...
@@ -8,6 +8,8 @@
...
@@ -8,6 +8,8 @@
//グローバルの名前空間用のオブジェクトを用意する
//グローバルの名前空間用のオブジェクトを用意する
var
COMMON
=
{};
var
COMMON
=
{};
COMMON
.
registerLogBusyFlag
=
false
;
COMMON
.
resourceVersionArr
=
[];
COMMON
.
resourceVersionArr
=
[];
COMMON
.
metaVersionArr
=
[];
COMMON
.
metaVersionArr
=
[];
...
@@ -2490,11 +2492,20 @@ COMMON.SetObjectLogActionTime = function( strContentId, objectId, actionTime ){
...
@@ -2490,11 +2492,20 @@ COMMON.SetObjectLogActionTime = function( strContentId, objectId, actionTime ){
/*
/*
Register reading log of content to server by calling api
Register reading log of content to server by calling api
*/
*/
COMMON
.
RegisterLog
=
function
(
is
)
{
COMMON
.
RegisterLog
=
function
(
isUnload
)
{
if
(
isUnload
==
null
){
isUnload
=
false
;
}
var
arrContentLogs
=
ClientData
.
ContentLogData
();
var
arrContentLogs
=
ClientData
.
ContentLogData
();
var
isError
=
false
;
//ブラウザ閉じる場合は重複を回避するためログデータ先に削除
if
(
isUnload
){
ClientData
.
ContentLogData
([]);
}
var
isError
=
false
;
for
(
var
nIndex
=
0
;
nIndex
<
arrContentLogs
.
length
;
nIndex
++
)
{
for
(
var
nIndex
=
0
;
nIndex
<
arrContentLogs
.
length
;
nIndex
++
)
{
var
dateEnd
=
new
Date
(
arrContentLogs
[
nIndex
].
readingEndDate
);
var
dateEnd
=
new
Date
(
arrContentLogs
[
nIndex
].
readingEndDate
);
var
dateStart
=
new
Date
(
arrContentLogs
[
nIndex
].
readingStartDate
);
var
dateStart
=
new
Date
(
arrContentLogs
[
nIndex
].
readingStartDate
);
...
@@ -2646,6 +2657,7 @@ COMMON.RegisterLog = function(is) {
...
@@ -2646,6 +2657,7 @@ COMMON.RegisterLog = function(is) {
}
}
);
);
};
};
if
(
AVWEB
.
avwHasError
())
{
if
(
AVWEB
.
avwHasError
())
{
return
;
return
;
}
}
...
@@ -2662,6 +2674,7 @@ COMMON.RegisterLog = function(is) {
...
@@ -2662,6 +2674,7 @@ COMMON.RegisterLog = function(is) {
}
}
ClientData
.
ContentLogData
(
arrTarget
);
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