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
7d122875
Commit
7d122875
authored
May 25, 2018
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#28871 オーサリング「プレビュー」表示のURLに不正アクセスした場合の対処
parent
cb84cd51
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
13 deletions
+23
-13
abvw/common/js/avweb.js
+4
-0
abvw/js/contentview.js
+19
-13
No files found.
abvw/common/js/avweb.js
View file @
7d122875
...
...
@@ -876,6 +876,10 @@ AVWEB.showSystemError = function(textId) {
//AVWEB.avwUserSetting().remove(COMMON.Keys.userInfo_sid_bak);
AVWEB
.
avwScreenMove
(
COMMON
.
ScreenIds
.
Login
);
}
}
else
if
(
COMMON
.
isAuthoringPreview
())
{
//オーサリングプレビューモードの場合は閉じる
window
.
open
(
''
,
'_self'
,
''
);
window
.
close
();
}
}
});
...
...
abvw/js/contentview.js
View file @
7d122875
...
...
@@ -6093,21 +6093,27 @@ CONTENTVIEW.ready = function(initContentId){
ClientData
.
JumpQueue
([]);
ClientData
.
IsJumpBack
(
false
);
var
moveScreen
=
null
;
if
(
!
ClientData
.
isStreamingMode
()
&&
!
ClientData
.
isGetitsMode
()){
moveScreen
=
COMMON
.
ScreenIds
.
Home
;
}
if
(
xmlHttpRequest
.
status
==
404
)
{
CONTENTVIEW
.
showAlertScreen
(
I18N
.
i18nText
(
'msgContentNotExist'
),
moveScreen
);
}
else
if
(
xmlHttpRequest
.
status
==
403
)
{
//認証エラー
CONTENTVIEW
.
showAlertScreen
(
I18N
.
i18nText
(
'sysErrorCallApi02'
),
moveScreen
);
}
else
{
//オーサリングプレビュー対応
if
(
COMMON
.
isAuthoringPreview
()
&&
CONTENTVIEW_GENERAL
.
pid
!=
''
){
// Show system error
AVWEB
.
showSystemError
();
}
else
{
var
moveScreen
=
null
;
if
(
!
ClientData
.
isStreamingMode
()
&&
!
ClientData
.
isGetitsMode
()){
moveScreen
=
COMMON
.
ScreenIds
.
Home
;
}
if
(
xmlHttpRequest
.
status
==
404
)
{
CONTENTVIEW
.
showAlertScreen
(
I18N
.
i18nText
(
'msgContentNotExist'
),
moveScreen
);
}
else
if
(
xmlHttpRequest
.
status
==
403
)
{
//認証エラー
CONTENTVIEW
.
showAlertScreen
(
I18N
.
i18nText
(
'sysErrorCallApi02'
),
moveScreen
);
}
else
{
// Show system error
AVWEB
.
showSystemError
();
}
}
}
);
...
...
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