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
ef984660
Commit
ef984660
authored
Feb 24, 2014
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#11270 コンテンツリンクエラー時にアラートウィンドウを表示して閲覧継続できるよう対応
parent
07c59a3e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
8 deletions
+52
-8
abvw/js/contentview.js
+32
-0
abvw/js/contentview_CreateObjects.js
+20
-8
No files found.
abvw/js/contentview.js
View file @
ef984660
...
...
@@ -1002,8 +1002,12 @@ function playBGMOfContent() {
/* display error screen*/
function
showErrorScreen
()
{
// エラーメッセージの表示
var
errMes
=
i18nText
(
'msgPageImgErr'
);
if
(
errMsg
==
undefined
||
errMsg
==
""
){
errMes
=
i18nText
(
'msgPageImgErr'
);
}
$
(
'#divImageLoading'
).
css
(
'display'
,
'none'
);
lockLayout
();
/* show error messages */
...
...
@@ -1019,6 +1023,34 @@ function showErrorScreen() {
$
(
'.toast-item-close'
).
live
(
'click'
,
imgBack_click
);
};
/* display alert screen*/
function
showAlertScreen
(
errMes
)
{
// アラートメッセージの表示
if
(
errMes
==
undefined
||
errMes
==
""
){
errMes
=
"message."
;
//i18nText('msgPageImgErr');
}
$
(
'#divImageLoading'
).
css
(
'display'
,
'none'
);
lockLayout
();
/* show error messages */
$
().
toastmessage
({
position
:
'middle-center'
});
$
().
toastmessage
(
'showToast'
,
{
type
:
'error'
,
sticky
:
true
,
text
:
errMes
,
close
:
function
()
{}
});
$
(
'.toast-type-error'
).
css
(
'height'
,
'100px'
);
$
(
'.toast-type-error > p'
).
css
(
'padding-top'
,
'35px'
);
$
(
'.toast-item-close'
).
live
(
'click'
,
function
()
{
unlockLayout
();
}
);
};
/* move to page ?? */
function
changePage
(
page_index
)
{
...
...
abvw/js/contentview_CreateObjects.js
View file @
ef984660
...
...
@@ -849,9 +849,9 @@ var jumpPage = function (mediaType, actionType, id, imageUrl, x, y, w, h, visibl
SetObjectLog
(
contentID
,
objectLog
);
//---
if
((
Number
(
jumpPage
)
-
1
)
!=
getPageIndex
())
{
if
((
Number
(
jumpPage
)
-
1
)
!=
getPageIndex
())
{
createLockLayout
(
true
);
changePage
(
Number
(
jumpPage
)
-
1
);
changePage
(
Number
(
jumpPage
)
-
1
);
}
};
};
...
...
@@ -948,9 +948,9 @@ var moveToContent = function (mediaType, actionType, id, imageUrl, x, y, w, h, v
SetObjectLog
(
contentID
,
objectLog
);
//---
/* set end log */
SetEndLog
(
contentID
);
RegisterLog
();
/
//
* set end log */
//
SetEndLog(contentID);
//
RegisterLog();
//START TRB00033 - EDITOR: Long - Date : 09/12/2013 - Summary : limit content
avwCmsApi
(
ClientData
.
userInfo_accountPath
(),
"webGetContent"
,
...
...
@@ -958,6 +958,10 @@ var moveToContent = function (mediaType, actionType, id, imageUrl, x, y, w, h, v
{
contentId
:
contentId
,
sid
:
ClientData
.
userInfo_sid
(),
getType
:
1
},
function
(
data
)
{
/* set end log */
SetEndLog
(
contentID
);
RegisterLog
();
if
(
data
.
contentData
.
alertMessageLevel
){
if
(
data
.
contentData
.
alertMessageLevel
==
alertMessageLevel
.
ShowAlert
){
...
...
@@ -1013,9 +1017,17 @@ var moveToContent = function (mediaType, actionType, id, imageUrl, x, y, w, h, v
}
},
null
);
//END TRB00033 - EDITOR: Long - Date : 09/12/2013 - Summary : limit content
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
if
(
xmlHttpRequest
.
status
==
404
)
{
showAlertScreen
(
i18nText
(
'msgContentNotExist'
));
}
else
{
// Show system error
showSystemError
();
}
}
);
//END TRB00033 - EDITOR: Long - Date : 09/12/2013 - Summary : limit content
};
};
...
...
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