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
7ee80973
Commit
7ee80973
authored
Jun 10, 2014
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#12154 認証エラー時対応
parent
10746f5b
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
55 additions
and
6 deletions
+55
-6
abvw/common/js/avweb.js
+12
-3
abvw/common/json/lang/lang-en.json
+1
-0
abvw/common/json/lang/lang-ja.json
+1
-0
abvw/common/json/lang/lang-ko.json
+1
-0
abvw/js/bookmark.js
+4
-0
abvw/js/contentview.js
+18
-2
abvw/js/contentview_CreateObjects.js
+5
-0
abvw/js/header.js
+3
-1
abvw/js/history.js
+5
-0
abvw/js/home.js
+5
-0
No files found.
abvw/common/js/avweb.js
View file @
7ee80973
...
...
@@ -473,7 +473,12 @@ function _callCmsApi(url, accountPath, apiName, type, params, async, success, er
if
(
error
)
{
error
(
xmlHttpRequest
,
txtStatus
,
errorThrown
);
}
else
{
showSystemError
();
if
(
xmlHttpRequest
.
status
==
403
)
{
showSystemError
(
'sysErrorCallApi02'
);
}
else
{
showSystemError
();
}
}
}
});
...
...
@@ -742,7 +747,7 @@ function getByte(text) {
};
/* show system error message */
var
hasErrorKey
=
'AVW_HASERR'
;
function
showSystemError
()
{
function
showSystemError
(
textId
)
{
if
(
avwHasError
())
{
// すでにエラー状態であればエラーを表示しない
...
...
@@ -752,8 +757,12 @@ function showSystemError() {
avwSetErrorState
();
}
if
(
!
textId
){
textId
=
'sysErrorCallApi01'
;
}
// create DOM element for showing error message
var
errMes
=
i18nText
(
'sysErrorCallApi01'
);
var
errMes
=
i18nText
(
textId
);
var
tags
=
'<div id="avw-sys-error"></div>'
;
//$('body').prepend(tags);
$
(
'body'
).
append
(
tags
);
...
...
abvw/common/json/lang/lang-en.json
View file @
7ee80973
{
"sysErrorCallApi01"
:
"System error.<br/>Please close this window and contact administrator."
,
"sysErrorCallApi02"
:
"ご迷惑をおかけし申し訳ございません。<br />認証エラーが発生しました。<br />ログイン画面に戻ります。"
,
"sysInfoScrLock01"
:
"Click to unlock."
,
"sysInfoWithoutLogout"
:
"Are you sure to close this window without logout?
\n
Incorrect logout will cause login problem next time."
,
...
...
abvw/common/json/lang/lang-ja.json
View file @
7ee80973
{
"sysErrorCallApi01"
:
"ご迷惑をおかけし申し訳ございません。<br />システムエラーが発生しました。<br />アプリケーションを終了し、管理者に連絡してください。"
,
"sysErrorCallApi02"
:
"ご迷惑をおかけし申し訳ございません。<br />認証エラーが発生しました。<br />ログイン画面に戻ります。"
,
"sysInfoScrLock01"
:
"長時間操作されなかったため、画面をロックしています。<br />画面をクリックしてロックを解除してください。"
,
"sysInfoWithoutLogout"
:
"ログアウトしていませんが、このまま終了してもよろしいですか?
\n
※【注意】ログアウトしないと次回ログインできない場合がございます。"
,
...
...
abvw/common/json/lang/lang-ko.json
View file @
7ee80973
{
"sysErrorCallApi01"
:
"시스템 에러가 발생했습니다. 이용에 불편을 드려 죄송합니다."
,
"sysErrorCallApi02"
:
"ご迷惑をおかけし申し訳ございません。<br />認証エラーが発生しました。<br />ログイン画面に戻ります。"
,
"sysInfoScrLock01"
:
"장시간 조작이 없었으므로, 화면이 잠겼습니다.<br/>잠김을 해제하려면 화면을 클릭하십시오."
,
"sysInfoWithoutLogout"
:
"로그아웃하지 않은 상태로 창을 닫으면, 다음에 로그인되지 않는 경우도 있습니다. 이대로 창을 닫으시겠습니까?
\n
(이 메세지는 브라우저를 '새로 고침' 할 때에도 표시됩니다.)"
,
...
...
abvw/js/bookmark.js
View file @
7ee80973
...
...
@@ -1062,6 +1062,10 @@ function IsExistContent(strContentId) {
if
(
xmlHttpRequest
.
status
==
404
)
{
isExisted
=
false
;
}
else
if
(
xmlHttpRequest
.
status
==
403
)
{
isExisted
=
true
;
//
showSystemError
(
'sysErrorCallApi02'
);
}
else
{
// Show system error
isExisted
=
true
;
// Mark this flag to prevent bookmarks from deleting
...
...
abvw/js/contentview.js
View file @
7ee80973
...
...
@@ -1024,7 +1024,7 @@ function showErrorScreen() {
};
/* display alert screen*/
function
showAlertScreen
(
errMes
)
{
function
showAlertScreen
(
errMes
,
scrMove
)
{
// アラートメッセージの表示
if
(
errMes
==
undefined
||
errMes
==
""
){
...
...
@@ -1045,6 +1045,9 @@ function showAlertScreen(errMes) {
$
(
'.toast-item-close'
).
live
(
'click'
,
function
()
{
unlockLayout
();
if
(
scrMove
){
avwScreenMove
(
scrMove
);
}
}
);
};
...
...
@@ -2717,7 +2720,20 @@ $("document").ready(function () {
}
}
},
null
);
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
if
(
xmlHttpRequest
.
status
==
404
)
{
showAlertScreen
(
i18nText
(
'msgContentNotExist'
),
ScreenIds
.
Home
);
}
else
if
(
xmlHttpRequest
.
status
==
403
)
{
//認証エラー
showAlertScreen
(
i18nText
(
'sysErrorCallApi02'
),
ScreenIds
.
Home
);
}
else
{
// Show system error
showSystemError
();
}
}
);
//END TRB00048 - EDITOR : Long - Date : 09/18/2013 - Summary : Fix Jumpcontent
//End Function : No.12
});
...
...
abvw/js/contentview_CreateObjects.js
View file @
7ee80973
...
...
@@ -1192,6 +1192,11 @@ var moveToContent = function (mediaType, actionType, id, imageUrl, x, y, w, h, v
if
(
xmlHttpRequest
.
status
==
404
)
{
showAlertScreen
(
i18nText
(
'msgContentNotExist'
));
}
else
if
(
xmlHttpRequest
.
status
==
403
)
{
//認証エラー
//showSystemError('sysErrorCallApi02');
showAlertScreen
(
i18nText
(
'sysErrorCallApi02'
));
}
else
{
// Show system error
showSystemError
();
...
...
abvw/js/header.js
View file @
7ee80973
...
...
@@ -842,7 +842,9 @@ function getPushMessageNew()
var
params
=
{
"sid"
:
ClientData
.
userInfo_sid
()};
avwCmsApi
(
ClientData
.
userInfo_accountPath
(),
"webPushMessageNew"
,
"post"
,
params
,
callbackGetPushMessageNewSuccess
,
function
(
xhr
,
b
,
c
)
{
});
function
(
xhr
,
b
,
c
)
{
}
);
};
// callback get number new message success
...
...
abvw/js/history.js
View file @
7ee80973
...
...
@@ -1589,6 +1589,11 @@ function IsExistContent(strContentId) {
if
(
xmlHttpRequest
.
status
==
404
)
{
isExisted
=
false
;
}
else
if
(
xmlHttpRequest
.
status
==
403
)
{
isExisted
=
true
;
// Mark this flag to prevent bookmarks from deleting
//認証エラー
showSystemError
(
'sysErrorCallApi02'
);
}
else
{
// Show system error
isExisted
=
true
;
// Mark this flag to prevent bookmarks from deleting
...
...
abvw/js/home.js
View file @
7ee80973
...
...
@@ -2824,6 +2824,11 @@ function IsExistContent(strContentId) {
if
(
xmlHttpRequest
.
status
==
404
)
{
isExisted
=
false
;
}
else
if
(
xmlHttpRequest
.
status
==
403
)
{
isExisted
=
true
;
// Mark this flag to prevent bookmarks from deleting
//認証エラー
showSystemError
(
'sysErrorCallApi02'
);
}
else
{
// Show system error
isExisted
=
true
;
// Mark this flag to prevent bookmarks from deleting
...
...
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