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
6142d01d
Commit
6142d01d
authored
Jan 14, 2019
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check 関連資料表示対応
parent
865cc2b3
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
127 additions
and
24 deletions
+127
-24
abvw/common/js/avweb.js
+4
-4
abvw/common/js/common.js
+29
-2
abvw/contentview_check.html
+2
-2
abvw/js/check/checkview.js
+8
-14
abvw/js/contentview.js
+2
-1
abvw/js/contentview_Check.js
+1
-1
abvw/js/contentview_General.js
+33
-0
abvw/js/contentview_InitObjects.js
+47
-0
abvw/js/stview.js
+1
-0
No files found.
abvw/common/js/avweb.js
View file @
6142d01d
...
...
@@ -923,13 +923,12 @@ AVWEB.avwClearError = function() {
/* ブラウザunload時に警告メッセージの出力設定を行う関数 */
AVWEB
.
avwSetLogoutNortice
=
function
()
{
window
.
onbeforeunload
=
function
(
event
)
{
if
(
ClientData
.
isGetitsMode
()
||
ClientData
.
isStreamingMode
()
||
ClientData
.
isCheckViewMode
()){
if
(
ClientData
.
isGetitsMode
()
||
ClientData
.
isCheckViewMode
()){
COMMON
.
SetEndLog
(
CONTENTVIEW_GENERAL
.
contentID
);
COMMON
.
RegisterLog
();
}
}
else
{
// メッセージ表示
}
else
if
(
ClientData
.
isStreamingMode
()
==
false
)
{
// ストリーミング以外ではメッセージ表示
// FFでは、https://bugzilla.mozilla.org/show_bug.cgi?id=588292 によりメッセージが出力されない
var
message
=
I18N
.
i18nText
(
'sysInfoWithoutLogout'
);
var
e
=
event
||
window
.
event
;
...
...
@@ -938,6 +937,7 @@ AVWEB.avwSetLogoutNortice = function() {
}
return
message
;
}
};
};
/* 警告メッセージを出力しないでページ遷移を行う関数 */
...
...
abvw/common/js/common.js
View file @
6142d01d
...
...
@@ -223,8 +223,7 @@ COMMON.Keys = {
serviceOpt_reader_usable_readinglog_gps
:
'reader_usable_readinglog_gps'
,
// Session :事業者オプション(serviceOpt)_getits向け詳細ログ使用可:Char(Y:可能, N:不可)
serviceOpt_reader_readinglog_object
:
'reader_readinglog_object'
,
// Session :事業者オプション(serviceOpt)_コンテンツ共有モード:Interger(0:なし , 1:ABook,
// 2:getits)
// Session :事業者オプション(serviceOpt)_コンテンツ共有モード:Interger(0:なし , 1:ABook, 2:getits)
serviceOpt_content_share
:
'content_share'
,
// Session :事業者オプション(serviceOpt)_公開時プッシュメッセージ:Char(Y:可能, N:不可)
serviceOpt_apns
:
'apns'
,
...
...
@@ -234,6 +233,10 @@ COMMON.Keys = {
serviceOpt_encryption
:
'encryption'
,
// Session :HTMLカスタムログ:Char(Y:可能, N:不可)
serviceOpt_html_custom_log
:
'html_custom_log'
,
// Session :ABookCheck:Char(Y:有効, N:無効)
serviceOpt_abook_check
:
'abook_check'
,
// Session :共通(common)_コンテンツID:Integer
common_contentId
:
'common_contentId'
,
// Local :共通(common)_コンテンツID:Integer
...
...
@@ -371,6 +374,7 @@ COMMON.Keys = {
isGetitsMode
:
'isGetitsMode'
,
isStreamingMode
:
'isStreamingMode'
,
isCheckViewMode
:
'isCheckViewMode'
,
isCheckMode
:
'isCheckMode'
,
conf_apiUrl
:
'conf_apiUrl'
,
conf_apiLoginUrl
:
'conf_apiLoginUrl'
,
conf_apiResourceDlUrl
:
'conf_apiResourceDlUrl'
,
...
...
@@ -1284,6 +1288,15 @@ var ClientData = {
}
},
// Session :事業者オプション(serviceOpt)_ABookCheck:Char(Y:有効, N:無効)
serviceOpt_abook_check
:
function
(
data
)
{
if
(
arguments
.
length
>
0
)
{
SessionStorageUtils
.
set
(
COMMON
.
Keys
.
serviceOpt_abook_check
,
data
);
}
else
{
return
SessionStorageUtils
.
get
(
COMMON
.
Keys
.
serviceOpt_abook_check
);
}
},
// Session :事業者オプション(serviceOpt)_カタログエディション:Char(Y:可能, N:不可)
serviceOpt_catalog_edition
:
function
(
data
)
{
if
(
arguments
.
length
>
0
)
{
...
...
@@ -1697,6 +1710,20 @@ var ClientData = {
}
},
//Checkモード用で追加
isCheckMode
:
function
(
data
)
{
if
(
arguments
.
length
>
0
)
{
SessionStorageUtils
.
set
(
COMMON
.
Keys
.
isCheckMode
,
JSON
.
stringify
(
data
));
}
else
{
if
(
SessionStorageUtils
.
get
(
COMMON
.
Keys
.
isCheckMode
)
!=
'undefined'
&&
SessionStorageUtils
.
get
(
COMMON
.
Keys
.
isCheckMode
)
!=
undefined
&&
SessionStorageUtils
.
get
(
COMMON
.
Keys
.
isCheckMode
)
!=
''
&&
SessionStorageUtils
.
get
(
COMMON
.
Keys
.
isCheckMode
)
!=
null
&&
SessionStorageUtils
.
get
(
COMMON
.
Keys
.
isCheckMode
)
!=
'null'
)
{
return
JSON
.
parse
(
SessionStorageUtils
.
get
(
COMMON
.
Keys
.
isCheckMode
));
}
return
false
;
}
},
conf_apiUrl
:
function
(
data
)
{
if
(
arguments
.
length
>
0
)
{
SessionStorageUtils
.
set
(
COMMON
.
Keys
.
conf_apiUrl
,
data
);
...
...
abvw/contentview_check.html
View file @
6142d01d
...
...
@@ -37,7 +37,7 @@
<script
type=
"text/javascript"
src=
"./common/js/common.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"./common/js/uuid.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"./js/contentview_
OpenUri
.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"./js/contentview_
Check
.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"./common/js/html2canvas.js?__UPDATEID__"
></script>
<script
type=
"text/javascript"
src=
"./common/js/promise-6.1.0.min.js?__UPDATEID__"
></script>
...
...
@@ -50,7 +50,7 @@
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
CONTENTVIEW_
OPENURI
.
ready
();
CONTENTVIEW_
CHECK
.
ready
();
});
</script>
...
...
abvw/js/check/checkview.js
View file @
6142d01d
...
...
@@ -17,6 +17,7 @@ CHECKVIEW.ready = function(){
ClientData
.
isGetitsMode
(
false
);
ClientData
.
isStreamingMode
(
false
);
ClientData
.
isCheckViewMode
(
true
);
ClientData
.
isCheckMode
(
false
);
ClientData
.
storeUrl
(
""
);
//confのパラメータセット
...
...
@@ -48,6 +49,8 @@ CHECKVIEW.ready = function(){
//Login Process
CHECKVIEW
.
processLogin
=
function
(
urlPath
,
contentKey
)
{
//パスワード関連はチェック不要
var
requireChangePassword
=
0
;
var
skipPwdDate
;
...
...
@@ -71,9 +74,6 @@ CHECKVIEW.processLogin = function(urlPath, contentKey) {
if
(
data
.
result
==
'success'
)
{
// Save retrieved info
//STVIEW.saveLoginInfo(data);
// set number new push message to 0
ClientData
.
pushInfo_newMsgNumber
(
0
);
...
...
@@ -82,13 +82,9 @@ CHECKVIEW.processLogin = function(urlPath, contentKey) {
$
(
'#main-error-message'
).
css
(
'display'
,
'none'
);
//contentKey復号化
CHECKVIEW
.
decodeContentKey
(
contentKey
);
//コンテンツIDセット
//ClientData.contentInfo_contentId(cid);
//ストリーミングのビューアへ移動
//AVWEB.avwScreenMove("abvw/" + COMMON.ScreenIds.ContentViewStreaming + "?__UPDATEID__");
}
else
{
LOGIN
.
login_errorMessage
=
data
.
errorMessage
;
$
(
'#main-error-message'
).
html
(
AVWEB
.
format
(
I18N
.
i18nText
(
'msgLoginErrWrong'
),
data
.
errorMessage
).
toString
());
...
...
@@ -115,7 +111,6 @@ CHECKVIEW.processLogin = function(urlPath, contentKey) {
};
//ワンタイムkeyパラメータからcontentIdを取得する
CHECKVIEW
.
decodeContentKey
=
function
(
contentKey
)
{
...
...
@@ -130,11 +125,11 @@ CHECKVIEW.decodeContentKey = function(contentKey) {
if
(
data
.
result
==
'success'
)
{
// コンテンツIDセット
ClientData
.
contentInfo_contentId
(
data
.
contentId
);
CHECKVIEW
.
showContentView
ByOpenUrl
(
data
.
contentId
);
CHECKVIEW
.
showContentView
(
data
.
contentId
);
}
},
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
// 見つからないかエラー
なのでホームに移動
// 見つからないかエラー
if
(
ClientData
.
isGetitsMode
()
==
true
)
{
AVWEB
.
avwScreenMove
(
"abvw/"
+
COMMON
.
ScreenIds
.
Login
);
}
else
{
...
...
@@ -145,9 +140,8 @@ CHECKVIEW.decodeContentKey = function(contentKey) {
};
//OpenUriで開いた場合の直接コンテンツ表示
CHECKVIEW
.
showContentViewByOpenUrl
=
function
(
strContentId
)
{
//直接コンテンツ表示
CHECKVIEW
.
showContentView
=
function
(
strContentId
)
{
var
contentType
=
''
;
var
result
=
[];
...
...
abvw/js/contentview.js
View file @
6142d01d
...
...
@@ -2627,7 +2627,7 @@ CONTENTVIEW.enableControlForMediaAndHtmlType = function(){
$
(
"#control_screen_2"
).
addClass
(
'toolbar_close'
);
}
//getits対応
//getits
/check
対応
if
(
ClientData
.
isGetitsMode
()
==
true
||
ClientData
.
isCheckViewMode
()
==
true
){
$
(
'#imgHome'
).
unbind
(
'click'
);
$
(
'#imgHome'
).
removeClass
();
...
...
@@ -4014,6 +4014,7 @@ CONTENTVIEW.disableControlsCopyMemo = function() {
/*enable all control when finish copy memo */
CONTENTVIEW
.
enableControlsCopyMemo
=
function
()
{
CONTENTVIEW
.
disableControlsCopyMemo
();
/* set cursor pointer*/
...
...
abvw/js/contentview_Check.js
View file @
6142d01d
...
...
@@ -31,6 +31,6 @@ CONTENTVIEW_CHECK.showContentView = function(){
};
$
(
"document"
).
ready
(
function
()
{
//CONTENTVIEW_
OPENURI
.ready();
//CONTENTVIEW_
CHECK
.ready();
});
abvw/js/contentview_General.js
View file @
6142d01d
...
...
@@ -115,6 +115,7 @@ CONTENTVIEW_GENERAL.disableAllControl = function() {
/*enable all control on page */
CONTENTVIEW_GENERAL
.
enableAllControl
=
function
()
{
CONTENTVIEW_GENERAL
.
disableAllControl
();
/* set cursor pointer*/
...
...
@@ -351,6 +352,38 @@ CONTENTVIEW_GENERAL.enableAllControl = function() {
$
(
'#imgBack'
).
addClass
(
'back_off'
);
}
if
(
ClientData
.
isCheckViewMode
())
{
//checkViewモード対応
/* imgage display memo */
$
(
'#imgmemo'
).
unbind
(
'click'
);
$
(
'#imgmemo'
).
removeClass
();
$
(
'#imgmemo'
).
addClass
(
'memoDisplay_off'
);
/* image add memo */
$
(
'#imgaddmemo'
).
unbind
(
'click'
);
$
(
'#imgaddmemo'
).
removeClass
();
$
(
'#imgaddmemo'
).
addClass
(
'memoAdd_off'
);
$
(
'#imgmarking'
).
unbind
(
'click'
);
$
(
'#imgmarking'
).
removeClass
();
$
(
'#imgmarking'
).
addClass
(
'marking_off'
);
$
(
'#imgmarkingtoolbar'
).
unbind
(
'click'
);
$
(
'#imgmarkingtoolbar'
).
removeClass
();
$
(
'#imgmarkingtoolbar'
).
addClass
(
'markingToolbar_off'
);
$
(
'#imgbookmark'
).
unbind
(
'click'
);
$
(
'#imgbookmark'
).
removeClass
();
$
(
'#imgbookmark'
).
addClass
(
'bmAdd_off'
);
/*list bookmark */
$
(
'#listbookmark'
).
unbind
(
'click'
);
$
(
'#listbookmark'
).
removeClass
();
$
(
'#listbookmark'
).
addClass
(
'bmList_off'
);
}
CONTENTVIEW
.
checkExistNextPrePage
();
};
...
...
abvw/js/contentview_InitObjects.js
View file @
6142d01d
...
...
@@ -4,6 +4,16 @@ var CONTENTVIEW_INITOBJECT = {};
/* init Image memo */
CONTENTVIEW_INITOBJECT
.
initImageMemo
=
function
()
{
if
(
ClientData
.
isCheckViewMode
())
{
//checkViewモード対応
/* imgage display memo */
$
(
'#imgmemo'
).
unbind
(
'click'
);
$
(
'#imgmemo'
).
removeClass
();
$
(
'#imgmemo'
).
addClass
(
'memoDisplay_off'
);
return
;
}
if
(
ClientData
.
IsDisplayMemo
()
==
true
)
{
//change class
$
(
'#imgmemo'
).
removeClass
();
...
...
@@ -18,6 +28,16 @@ CONTENTVIEW_INITOBJECT.initImageMemo = function() {
/* init Image add memo */
CONTENTVIEW_INITOBJECT
.
initImageAddMemo
=
function
()
{
if
(
ClientData
.
isCheckViewMode
())
{
//checkViewモード対応
/* image add memo */
$
(
'#imgaddmemo'
).
unbind
(
'click'
);
$
(
'#imgaddmemo'
).
removeClass
();
$
(
'#imgaddmemo'
).
addClass
(
'memoAdd_off'
);
return
;
}
if
(
ClientData
.
IsAddingMemo
()
==
true
)
{
//change class
$
(
'#imgaddmemo'
).
removeClass
();
...
...
@@ -33,6 +53,19 @@ CONTENTVIEW_INITOBJECT.initImageAddMemo = function() {
/*check display marking?? */
CONTENTVIEW_INITOBJECT
.
initDisplayMarking
=
function
()
{
if
(
ClientData
.
isCheckViewMode
())
{
//checkViewモード対応
$
(
'#imgmarking'
).
unbind
(
'click'
);
$
(
'#imgmarking'
).
removeClass
();
$
(
'#imgmarking'
).
addClass
(
'marking_off'
);
$
(
'#imgmarkingtoolbar'
).
unbind
(
'click'
);
$
(
'#imgmarkingtoolbar'
).
removeClass
();
$
(
'#imgmarkingtoolbar'
).
addClass
(
'markingToolbar_off'
);
return
;
}
if
(
ClientData
.
IsDisplayMarking
()
==
true
)
{
// change class
$
(
'#imgmarking'
).
removeClass
();
...
...
@@ -75,6 +108,20 @@ CONTENTVIEW_INITOBJECT.initDisplayMarking = function() {
/* init Image bookmark */
CONTENTVIEW_INITOBJECT
.
initImageBookmark
=
function
()
{
if
(
ClientData
.
isCheckViewMode
())
{
//checkViewモード対応
$
(
'#imgbookmark'
).
unbind
(
'click'
);
$
(
'#imgbookmark'
).
removeClass
();
$
(
'#imgbookmark'
).
addClass
(
'bmAdd_off'
);
/*list bookmark */
$
(
'#listbookmark'
).
unbind
(
'click'
);
$
(
'#listbookmark'
).
removeClass
();
$
(
'#listbookmark'
).
addClass
(
'bmList_off'
);
return
;
}
if
(
CONTENTVIEW
.
isExistBookmark
()
==
-
1
)
{
//change class
$
(
'#imgbookmark'
).
removeClass
();
...
...
abvw/js/stview.js
View file @
6142d01d
...
...
@@ -168,6 +168,7 @@ STVIEW.ready = function(){
//モード初期化
ClientData
.
isGetitsMode
(
false
);
ClientData
.
isStreamingMode
(
false
);
ClientData
.
isCheckViewMode
(
false
);
//confのパラメータセット
ClientData
.
conf_apiUrl
(
sysSettings
.
apiUrl
);
...
...
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