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
4849bacd
Commit
4849bacd
authored
Jan 05, 2016
by
vietdo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#15771【Chrome42】CMS でオーサリングのプレビューを行うと、Web Viewer で多重ログインの問題が発生する
parent
6635352b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
80 additions
and
72 deletions
+80
-72
abvw/common/js/common.js
+0
-0
abvw/js/contentpreview.js
+59
-59
abvw/js/contentview.js
+16
-8
abvw/js/contentview_CallApi.js
+1
-1
abvw/js/contentview_Events.js
+2
-2
abvw/js/contentview_GetData.js
+2
-2
No files found.
abvw/common/js/common.js
View file @
4849bacd
This source diff could not be displayed because it is too large. You can
view the blob
instead.
abvw/js/contentpreview.js
View file @
4849bacd
...
...
@@ -3,66 +3,66 @@
var
CONTENTPREVIEW
=
{};
CONTENTPREVIEW
.
ready
=
function
(){
if
(
!
AVWEB
.
avwUserSessionObj
){
AVWEB
.
avwCreateUserSession
();
}
if
(
!
AVWEB
.
avwUserSessionObj
){
AVWEB
.
avwCreateUserSession
();
}
var
sysSettings
=
AVWEB
.
avwSysSetting
();
// get info in conf.json
var
sid
=
COMMON
.
getUrlParam
(
'sid'
,
''
);
var
contentId
=
COMMON
.
getUrlParam
(
'contentId'
,
''
);
var
urlPath
=
COMMON
.
getUrlParam
(
'urlpath'
,
''
);
ClientData
.
userInfo_sid_preview
(
sid
);
console
.
log
(
"pid"
+
ClientData
.
userInfo_sid_preview
(
sid
));
ClientData
.
userInfo_sid_local_preview
(
sid
);
ClientData
.
userInfo_accountPath
(
urlPath
);
ClientData
.
contentInfo_contentId
(
contentId
);
ClientData
.
conf_apiUrl
(
sysSettings
.
apiUrl
);
ClientData
.
conf_apiLoginUrl
(
sysSettings
.
apiLoginUrl
);
ClientData
.
conf_apiResourceDlUrl
(
sysSettings
.
apiResourceDlUrl
);
//ビューア、共有表示パーツ読み込み
$
(
"#viewer"
).
load
(
"./inc_contentview.html?__UPDATEID__"
,
function
(
myData
,
myStatus
,
xhr
){
//メニュー表示設定
$
(
'#top_toolbar'
).
hide
();
$
(
'#search_toolbar'
).
hide
();
$
(
'#close_toolbar'
).
show
();
//読み込み完了時の処理
I18N
.
i18nReplaceText
();
CONTENTPREVIEW
.
defaultValue
=
{
pageTransition
:
CONTENTVIEW_GENERAL
.
animateTypeKeys
.
Type_Slide
,
pageTransitionPeriod
:
1
,
bookmarkData
:
[],
memoData
:
[],
markingData
:
[],
isMarkingDsp
:
false
,
isMemoDsp
:
false
,
userOpt_marking
:
'N'
};
ClientData
.
userOpt_pageTransition
(
CONTENTPREVIEW
.
defaultValue
.
pageTransition
);
ClientData
.
userOpt_pageTransitionPeriod
(
CONTENTPREVIEW
.
defaultValue
.
pageTransitionPeriod
);
ClientData
.
BookMarkData
(
CONTENTPREVIEW
.
defaultValue
.
bookmarkData
);
ClientData
.
MemoData
(
CONTENTPREVIEW
.
defaultValue
.
memoData
);
ClientData
.
MarkingData
(
CONTENTPREVIEW
.
defaultValue
.
markingData
);
ClientData
.
userOpt_makingDsp
(
CONTENTPREVIEW
.
defaultValue
.
isMarkingDsp
);
ClientData
.
serviceOpt_marking
(
CONTENTPREVIEW
.
defaultValue
.
userOpt_marking
);
ClientData
.
IsAddingMarking
(
false
);
ClientData
.
IsAddingMemo
(
false
);
ClientData
.
IsDisplayMarking
(
false
);
ClientData
.
IsDisplayMemo
(
false
);
CONTENTVIEW_INITOBJECT
.
clearViewerComponent
();
CONTENTVIEW
.
cssInit
();
$
(
"#viewer"
).
show
();
CONTENTVIEW
.
ready
(
contentId
);
});
var
sysSettings
=
AVWEB
.
avwSysSetting
();
// get info in conf.json
var
sid
=
COMMON
.
getUrlParam
(
'sid'
,
''
);
var
contentId
=
COMMON
.
getUrlParam
(
'contentId'
,
''
);
var
urlPath
=
COMMON
.
getUrlParam
(
'urlpath'
,
''
);
ClientData
.
userInfo_sid
(
sid
);
ClientData
.
userInfo_sid_local
(
sid
);
ClientData
.
userInfo_accountPath
(
urlPath
);
ClientData
.
contentInfo_contentId
(
contentId
);
ClientData
.
conf_apiUrl
(
sysSettings
.
apiUrl
);
ClientData
.
conf_apiLoginUrl
(
sysSettings
.
apiLoginUrl
);
ClientData
.
conf_apiResourceDlUrl
(
sysSettings
.
apiResourceDlUrl
);
//ビューア、共有表示パーツ読み込み
$
(
"#viewer"
).
load
(
"./inc_contentview.html?__UPDATEID__"
,
function
(
myData
,
myStatus
,
xhr
){
//メニュー表示設定
$
(
'#top_toolbar'
).
hide
();
$
(
'#search_toolbar'
).
hide
();
$
(
'#close_toolbar'
).
show
();
//読み込み完了時の処理
I18N
.
i18nReplaceText
();
CONTENTPREVIEW
.
defaultValue
=
{
pageTransition
:
CONTENTVIEW_GENERAL
.
animateTypeKeys
.
Type_Slide
,
pageTransitionPeriod
:
1
,
bookmarkData
:
[],
memoData
:
[],
markingData
:
[],
isMarkingDsp
:
false
,
isMemoDsp
:
false
,
userOpt_marking
:
'N'
};
ClientData
.
userOpt_pageTransition
(
CONTENTPREVIEW
.
defaultValue
.
pageTransition
);
ClientData
.
userOpt_pageTransitionPeriod
(
CONTENTPREVIEW
.
defaultValue
.
pageTransitionPeriod
);
ClientData
.
BookMarkData
(
CONTENTPREVIEW
.
defaultValue
.
bookmarkData
);
ClientData
.
MemoData
(
CONTENTPREVIEW
.
defaultValue
.
memoData
);
ClientData
.
MarkingData
(
CONTENTPREVIEW
.
defaultValue
.
markingData
);
ClientData
.
userOpt_makingDsp
(
CONTENTPREVIEW
.
defaultValue
.
isMarkingDsp
);
ClientData
.
serviceOpt_marking
(
CONTENTPREVIEW
.
defaultValue
.
userOpt_marking
);
ClientData
.
IsAddingMarking
(
false
);
ClientData
.
IsAddingMemo
(
false
);
ClientData
.
IsDisplayMarking
(
false
);
ClientData
.
IsDisplayMemo
(
false
);
CONTENTVIEW_INITOBJECT
.
clearViewerComponent
();
CONTENTVIEW
.
cssInit
();
$
(
"#viewer"
).
show
();
CONTENTVIEW
.
ready
(
contentId
);
});
};
$
(
document
).
ready
(
function
(){
...
...
abvw/js/contentview.js
View file @
4849bacd
...
...
@@ -4413,7 +4413,7 @@ CONTENTVIEW.draw = function(context, opt) {
context
.
save
();
//Draw on main canvas
if
(
opt
==
null
||
opt
==
0
){
console
.
log
(
"CONTENTVIEW_GETDATA.getContent().currentPage.drawPage(context)"
+
CONTENTVIEW_GETDATA
.
getContent
().
currentPage
.
drawPage
(
context
));
if
(
opt
==
null
||
opt
==
0
){
/* draw page objects */
CONTENTVIEW_GETDATA
.
getContent
().
currentPage
.
drawPage
(
context
);
}
...
...
@@ -5998,13 +5998,21 @@ CONTENTVIEW.handleDisplayMobileToolbar = function(){
CONTENTVIEW
.
getSessionId
=
function
(){
if
(
ClientData
.
userInfo_sid_local
())
{
return
ClientData
.
userInfo_sid_local
();
}
else
if
(
ClientData
.
userInfo_sid_local_bak
())
{
return
ClientData
.
userInfo_sid_local_bak
();
}
else
{
return
ClientData
.
userInfo_sid
();
}
if
(
COMMON
.
isAuthoringPreview
()){
if
(
ClientData
.
userInfo_sid_local_preview
()){
console
.
log
(
"pid1"
+
ClientData
.
userInfo_sid_local_preview
())
return
ClientData
.
userInfo_sid_local_preview
();
}
else
{
console
.
log
(
"pid2"
+
ClientData
.
userInfo_sid_preview
())
return
ClientData
.
userInfo_sid_preview
();
}
}
else
{
if
(
ClientData
.
userInfo_sid_local
())
{
return
ClientData
.
userInfo_sid_local
();
}
else
if
(
ClientData
.
userInfo_sid_local_bak
())
{
return
ClientData
.
userInfo_sid_local_bak
();
}
else
{
return
ClientData
.
userInfo_sid
();
}
}
};
...
...
abvw/js/contentview_CallApi.js
View file @
4849bacd
...
...
@@ -12,7 +12,7 @@ CONTENTVIEW_CALLAPI.getJsonContentInfo = function( doneFunc ) {
//console.log("CONTENTVIEW_CALLAPI.getJsonContentInfo");
AVWEB
.
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
C
lientData
.
userInfo_si
d
(),
pageNo
:
1
},
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
C
ONTENTVIEW
.
getSessionI
d
(),
pageNo
:
1
},
function
(
data
)
{
CONTENTVIEW_GENERAL
.
pageImages
=
data
;
CONTENTVIEW_CALLAPI
.
getJsonContentInfoDone
(
doneFunc
);
...
...
abvw/js/contentview_Events.js
View file @
4849bacd
...
...
@@ -365,7 +365,7 @@ CONTENTVIEW_EVENTS.firstPage_click = function() {
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_PDF
){
AVWEB
.
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
C
lientData
.
userInfo_si
d
(),
pageNo
:
1
},
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
C
ONTENTVIEW
.
getSessionI
d
(),
pageNo
:
1
},
function
(
data
)
{
CONTENTVIEW_GENERAL
.
pageImages
=
data
;
...
...
@@ -435,7 +435,7 @@ CONTENTVIEW_EVENTS.lastPage_click = function() {
AVWEB
.
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
C
lientData
.
userInfo_si
d
(),
pageNo
:
CONTENTVIEW_GENERAL
.
totalPage
},
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
C
ONTENTVIEW
.
getSessionI
d
(),
pageNo
:
CONTENTVIEW_GENERAL
.
totalPage
},
function
(
data
)
{
CONTENTVIEW_GENERAL
.
pageImages
=
data
;
/* get page Objects */
...
...
abvw/js/contentview_GetData.js
View file @
4849bacd
...
...
@@ -1373,7 +1373,7 @@ CONTENTVIEW_GETDATA.renderNextPage = function(){
//console.log("CONTENTVIEW_GETDATA.renderNextPage");
AVWEB
.
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
C
lientData
.
userInfo_si
d
(),
pageNo
:
pageNo
},
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
C
ONTENTVIEW
.
getSessionI
d
(),
pageNo
:
pageNo
},
function
(
data
)
{
CONTENTVIEW_GENERAL
.
nextPageImage
=
data
;
...
...
@@ -1410,7 +1410,7 @@ CONTENTVIEW_GETDATA.renderPrevPage = function(){
//console.log("CONTENTVIEW_GETDATA.renderPrevPage");
AVWEB
.
avwGrabContentPageImage
(
ClientData
.
userInfo_accountPath
(),
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
C
lientData
.
userInfo_si
d
(),
pageNo
:
pageNo
},
{
contentId
:
CONTENTVIEW_GENERAL
.
contentID
,
sid
:
C
ONTENTVIEW
.
getSessionI
d
(),
pageNo
:
pageNo
},
function
(
data
)
{
CONTENTVIEW_GENERAL
.
prevPageImage
=
data
;
CONTENTVIEW_GENERAL
.
prevContent
.
setPageImages
(
CONTENTVIEW_GENERAL
.
totalPage
,
CONTENTVIEW_GENERAL
.
prevPageImage
)
...
...
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