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
d4929ff5
Commit
d4929ff5
authored
Apr 02, 2015
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#15763 プッシュ通知が無効ならヘッダの「通知」ボタンを非表示にする
parent
bb946e0e
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
88 additions
and
19 deletions
+88
-19
abvw/bookmark.html
+1
-1
abvw/common/js/common.js
+20
-0
abvw/contentsearch.html
+1
-1
abvw/history.html
+1
-1
abvw/home.html
+1
-1
abvw/js/bookmark.js
+8
-0
abvw/js/contentsearch.js
+12
-4
abvw/js/contentview.js
+3
-2
abvw/js/header.js
+8
-3
abvw/js/history.js
+8
-0
abvw/js/home.js
+9
-4
abvw/js/login.js
+6
-1
abvw/js/settings.js
+9
-0
abvw/settings.html
+1
-1
No files found.
abvw/bookmark.html
View file @
d4929ff5
...
@@ -96,7 +96,7 @@
...
@@ -96,7 +96,7 @@
</ul>
</ul>
</div>
</div>
<ul
class=
"button"
>
<ul
class=
"button"
>
<li
class=
"floatL"
id=
"dspPushMessage"
>
<li
class=
"floatL"
id=
"dspPushMessage"
style=
"display:none;"
>
<a
href=
"#"
id=
"liPushMessage"
><span
class=
"pushMessage"
><span
class=
"icon"
></span>
<span
class=
"lang"
lang=
"txtPushAlert"
>
<!--新着 : -->
</span><span
id=
"numbermessage"
></span><span
class=
"arrow"
></span></span></a>
<a
href=
"#"
id=
"liPushMessage"
><span
class=
"pushMessage"
><span
class=
"icon"
></span>
<span
class=
"lang"
lang=
"txtPushAlert"
>
<!--新着 : -->
</span><span
id=
"numbermessage"
></span><span
class=
"arrow"
></span></span></a>
<div
id=
"accordion"
style=
"display:none;"
>
<div
id=
"accordion"
style=
"display:none;"
>
<div
id=
"show-push-message"
></div>
<div
id=
"show-push-message"
></div>
...
...
abvw/common/js/common.js
View file @
d4929ff5
...
@@ -217,6 +217,10 @@ COMMON.Keys = {
...
@@ -217,6 +217,10 @@ COMMON.Keys = {
serviceOpt_reader_readinglog_object
:
'reader_readinglog_object'
,
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'
,
serviceOpt_content_share
:
'content_share'
,
// Session :事業者オプション(serviceOpt)_公開時プッシュメッセージ:Char(Y:可能, N:不可)
serviceOpt_apns
:
'apns'
,
// Session :事業者オプション(serviceOpt)_任意のプッシュメッセージ:Char(Y:可能, N:不可)
serviceOpt_usable_push_message
:
'usable_push_message'
,
// Session :共通(common)_コンテンツID:Integer
// Session :共通(common)_コンテンツID:Integer
common_contentId
:
'common_contentId'
,
common_contentId
:
'common_contentId'
,
...
@@ -1275,6 +1279,22 @@ var ClientData = {
...
@@ -1275,6 +1279,22 @@ var ClientData = {
return
SessionStorageUtils
.
get
(
COMMON
.
Keys
.
serviceOpt_daihatsu
);
return
SessionStorageUtils
.
get
(
COMMON
.
Keys
.
serviceOpt_daihatsu
);
}
}
},
},
// Session :事業者オプション(serviceOpt)_公開時プッシュメッセージ:Char(Y:可能, N:不可)
serviceOpt_apns
:
function
(
data
)
{
if
(
arguments
.
length
>
0
)
{
SessionStorageUtils
.
set
(
COMMON
.
Keys
.
serviceOpt_apns
,
data
);
}
else
{
return
SessionStorageUtils
.
get
(
COMMON
.
Keys
.
serviceOpt_apns
);
}
},
// Session :事業者オプション(serviceOpt)_任意のプッシュメッセージ:Char(Y:可能, N:不可)
serviceOpt_usable_push_message
:
function
(
data
)
{
if
(
arguments
.
length
>
0
)
{
SessionStorageUtils
.
set
(
COMMON
.
Keys
.
serviceOpt_usable_push_message
,
data
);
}
else
{
return
SessionStorageUtils
.
get
(
COMMON
.
Keys
.
serviceOpt_usable_push_message
);
}
},
// Session :共通(common)_コンテンツID:Integer
// Session :共通(common)_コンテンツID:Integer
common_contentId
:
function
(
data
)
{
common_contentId
:
function
(
data
)
{
...
...
abvw/contentsearch.html
View file @
d4929ff5
...
@@ -102,7 +102,7 @@
...
@@ -102,7 +102,7 @@
</ul>
</ul>
</div>
</div>
<ul
class=
"button"
>
<ul
class=
"button"
>
<li
class=
"floatL"
id=
"dspPushMessage"
>
<li
class=
"floatL"
id=
"dspPushMessage"
style=
"display:none;"
>
<a
href=
"#"
id=
"liPushMessage"
><span
class=
"pushMessage"
><span
class=
"icon"
></span>
<span
class=
"lang"
lang=
"txtPushAlert"
>
<!--新着 : -->
</span><span
id=
"numbermessage"
></span><span
class=
"arrow"
></span></span></a>
<a
href=
"#"
id=
"liPushMessage"
><span
class=
"pushMessage"
><span
class=
"icon"
></span>
<span
class=
"lang"
lang=
"txtPushAlert"
>
<!--新着 : -->
</span><span
id=
"numbermessage"
></span><span
class=
"arrow"
></span></span></a>
<div
id=
"accordion"
style=
"display:none;"
>
<div
id=
"accordion"
style=
"display:none;"
>
<div
id=
"show-push-message"
></div>
<div
id=
"show-push-message"
></div>
...
...
abvw/history.html
View file @
d4929ff5
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
</ul>
</ul>
</div>
</div>
<ul
class=
"button"
>
<ul
class=
"button"
>
<li
class=
"floatL"
id=
"dspPushMessage"
>
<li
class=
"floatL"
id=
"dspPushMessage"
style=
"display:none;"
>
<a
href=
"#"
id=
"liPushMessage"
><span
class=
"pushMessage"
><span
class=
"icon"
></span>
<span
class=
"lang"
lang=
"txtPushAlert"
>
<!--新着 : -->
</span><span
id=
"numbermessage"
></span><span
class=
"arrow"
></span></span></a>
<a
href=
"#"
id=
"liPushMessage"
><span
class=
"pushMessage"
><span
class=
"icon"
></span>
<span
class=
"lang"
lang=
"txtPushAlert"
>
<!--新着 : -->
</span><span
id=
"numbermessage"
></span><span
class=
"arrow"
></span></span></a>
<div
id=
"accordion"
style=
"display:none;"
>
<div
id=
"accordion"
style=
"display:none;"
>
<div
id=
"show-push-message"
></div>
<div
id=
"show-push-message"
></div>
...
...
abvw/home.html
View file @
d4929ff5
...
@@ -110,7 +110,7 @@
...
@@ -110,7 +110,7 @@
</ul>
</ul>
</div>
</div>
<ul
class=
"button"
>
<ul
class=
"button"
>
<li
class=
"floatL"
id=
"dspPushMessage"
>
<li
class=
"floatL"
id=
"dspPushMessage"
style=
"display:none;"
>
<a
href=
"#"
id=
"liPushMessage"
><span
class=
"pushMessage"
><span
class=
"icon"
></span>
<span
class=
"lang"
lang=
"txtPushAlert"
>
<!--新着 : -->
</span><span
id=
"numbermessage"
></span><span
class=
"arrow"
></span></span></a>
<a
href=
"#"
id=
"liPushMessage"
><span
class=
"pushMessage"
><span
class=
"icon"
></span>
<span
class=
"lang"
lang=
"txtPushAlert"
>
<!--新着 : -->
</span><span
id=
"numbermessage"
></span><span
class=
"arrow"
></span></span></a>
<div
id=
"accordion"
style=
"display:none;"
>
<div
id=
"accordion"
style=
"display:none;"
>
<div
id=
"show-push-message"
></div>
<div
id=
"show-push-message"
></div>
...
...
abvw/js/bookmark.js
View file @
d4929ff5
...
@@ -80,6 +80,14 @@ $(document).ready(function () {
...
@@ -80,6 +80,14 @@ $(document).ready(function () {
if
(
COMMON
.
isAnonymousLogin
())
{
if
(
COMMON
.
isAnonymousLogin
())
{
//プッシュメッセージ隠す
//プッシュメッセージ隠す
$
(
'#dspPushMessage'
).
hide
();
$
(
'#dspPushMessage'
).
hide
();
}
else
{
//プッシュメッセージ判定
if
(
ClientData
.
serviceOpt_apns
()
==
'Y'
||
ClientData
.
serviceOpt_usable_push_message
()
==
'Y'
){
//プッシュメッセージ表示
$
(
'#dspPushMessage'
).
show
();
}
else
{
$
(
'#dspPushMessage'
).
hide
();
}
}
}
//ダイアログ関連
//ダイアログ関連
...
...
abvw/js/contentsearch.js
View file @
d4929ff5
...
@@ -112,10 +112,18 @@ $(document).ready(function(){
...
@@ -112,10 +112,18 @@ $(document).ready(function(){
HEADER
.
checkForceChangePassword
();
HEADER
.
checkForceChangePassword
();
}
}
if
(
COMMON
.
isAnonymousLogin
())
{
if
(
COMMON
.
isAnonymousLogin
())
{
//プッシュメッセージ隠す
//プッシュメッセージ隠す
$
(
'#dspPushMessage'
).
hide
();
$
(
'#dspPushMessage'
).
hide
();
}
}
else
{
//プッシュメッセージ判定
if
(
ClientData
.
serviceOpt_apns
()
==
'Y'
||
ClientData
.
serviceOpt_usable_push_message
()
==
'Y'
){
//プッシュメッセージ表示
$
(
'#dspPushMessage'
).
show
();
}
else
{
$
(
'#dspPushMessage'
).
hide
();
}
}
//詳細、共有表示パーツ読み込み
//詳細、共有表示パーツ読み込み
$
(
"#inc_detail"
).
load
(
"./inc_detail.html?__UPDATEID__"
,
function
(
myData
,
myStatus
,
xhr
){
$
(
"#inc_detail"
).
load
(
"./inc_detail.html?__UPDATEID__"
,
function
(
myData
,
myStatus
,
xhr
){
...
...
abvw/js/contentview.js
View file @
d4929ff5
...
@@ -5426,10 +5426,11 @@ CONTENTVIEW.screenBack = function(){
...
@@ -5426,10 +5426,11 @@ CONTENTVIEW.screenBack = function(){
}
}
//プッシュメッセージ再開
//プッシュメッセージ再開
// check new push message
if
(
COMMON
.
isAnonymousLogin
()
==
false
)
{
if
(
COMMON
.
isAnonymousLogin
()
==
false
)
{
// continue check new push message
// continue check new push message
setTimeout
(
HEADER
.
getPushMessageNew
,
HEADER
.
getTimeWaitCheckNewPushMessage
());
if
(
$
(
'#dspPushMessage'
).
length
&&
$
(
'#dspPushMessage'
).
is
(
':visible'
)){
setTimeout
(
HEADER
.
getPushMessageNew
,
HEADER
.
getTimeWaitCheckNewPushMessage
());
}
}
}
};
};
...
...
abvw/js/header.js
View file @
d4929ff5
...
@@ -824,7 +824,7 @@ HEADER.initPushMessage = function()
...
@@ -824,7 +824,7 @@ HEADER.initPushMessage = function()
// check new push message
// check new push message
if
(
COMMON
.
isAnonymousLogin
()
==
false
)
{
if
(
COMMON
.
isAnonymousLogin
()
==
false
)
{
HEADER
.
getPushMessageNew
();
HEADER
.
getPushMessageNew
();
}
}
};
};
...
@@ -838,12 +838,18 @@ HEADER.getTimeWaitCheckNewPushMessage = function()
...
@@ -838,12 +838,18 @@ HEADER.getTimeWaitCheckNewPushMessage = function()
HEADER
.
getPushMessageNew
=
function
()
HEADER
.
getPushMessageNew
=
function
()
{
{
//ロック中かビューア画面ならチェックしない
//ロック中かビューア画面ならチェックしない
if
(
$
(
"#viewer"
).
length
)
{
if
(
$
(
"#viewer"
).
length
&&
$
(
'#viewer'
).
is
(
':visible'
)
)
{
//表示状態か
//表示状態か
if
(
$
(
'#viewer'
).
is
(
':visible'
)){
if
(
$
(
'#viewer'
).
is
(
':visible'
)){
return
;
return
;
}
}
}
}
//通知ボタンが非表示ならチェックしない
if
(
$
(
'#dspPushMessage'
).
length
&&
$
(
'#dspPushMessage'
).
is
(
':hidden'
)){
return
;
}
//$('.notification-pushmessage').hide();
//$('.notification-pushmessage').hide();
var
params
=
{
var
params
=
{
"sid"
:
ClientData
.
userInfo_sid
()
"sid"
:
ClientData
.
userInfo_sid
()
...
@@ -894,7 +900,6 @@ HEADER.callbackGetPushMessageNewSuccess = function(data) {
...
@@ -894,7 +900,6 @@ HEADER.callbackGetPushMessageNewSuccess = function(data) {
// continue check new push message
// continue check new push message
setTimeout
(
HEADER
.
getPushMessageNew
,
HEADER
.
getTimeWaitCheckNewPushMessage
());
setTimeout
(
HEADER
.
getPushMessageNew
,
HEADER
.
getTimeWaitCheckNewPushMessage
());
};
};
// get message
// get message
...
...
abvw/js/history.js
View file @
d4929ff5
...
@@ -102,6 +102,14 @@ $(document).ready(function(){
...
@@ -102,6 +102,14 @@ $(document).ready(function(){
if
(
COMMON
.
isAnonymousLogin
())
{
if
(
COMMON
.
isAnonymousLogin
())
{
//プッシュメッセージ隠す
//プッシュメッセージ隠す
$
(
'#dspPushMessage'
).
hide
();
$
(
'#dspPushMessage'
).
hide
();
}
else
{
//プッシュメッセージ判定
if
(
ClientData
.
serviceOpt_apns
()
==
'Y'
||
ClientData
.
serviceOpt_usable_push_message
()
==
'Y'
){
//プッシュメッセージ表示
$
(
'#dspPushMessage'
).
show
();
}
else
{
$
(
'#dspPushMessage'
).
hide
();
}
}
}
//詳細、共有表示パーツ読み込み
//詳細、共有表示パーツ読み込み
...
...
abvw/js/home.js
View file @
d4929ff5
...
@@ -194,7 +194,6 @@ $(document).ready(function () {
...
@@ -194,7 +194,6 @@ $(document).ready(function () {
// hide tab group with user anonymous
// hide tab group with user anonymous
if
(
COMMON
.
isAnonymousLogin
())
{
if
(
COMMON
.
isAnonymousLogin
())
{
//グループ選択隠す
//グループ選択隠す
$
(
'.switchingTab .colright'
).
hide
();
$
(
'.switchingTab .colright'
).
hide
();
//プッシュメッセージ隠す
//プッシュメッセージ隠す
...
@@ -212,10 +211,16 @@ $(document).ready(function () {
...
@@ -212,10 +211,16 @@ $(document).ready(function () {
$
(
'#btnAddMemberGroupSearch'
).
click
(
HOME
.
btnAddMemberGroupSearchClickFunction
);
$
(
'#btnAddMemberGroupSearch'
).
click
(
HOME
.
btnAddMemberGroupSearchClickFunction
);
}
}
}
else
{
}
else
{
//$('.tabUnit').show();
$
(
'.switchingTab .colright'
).
show
();
$
(
'.switchingTab .colright'
).
show
();
//プッシュメッセージ判定
if
(
ClientData
.
serviceOpt_apns
()
==
'Y'
||
ClientData
.
serviceOpt_usable_push_message
()
==
'Y'
){
//プッシュメッセージ表示
$
(
'#dspPushMessage'
).
show
();
}
else
{
$
(
'#dspPushMessage'
).
hide
();
}
}
}
// set scroll for tree view with IE9 on win7
// set scroll for tree view with IE9 on win7
var
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
var
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
if
(
/msie 9.0/
.
test
(
ua
)
&&
/windows nt 6.1/
.
test
(
ua
)
&&
!
/tablet/
.
test
(
ua
))
{
if
(
/msie 9.0/
.
test
(
ua
)
&&
/windows nt 6.1/
.
test
(
ua
)
&&
!
/tablet/
.
test
(
ua
))
{
...
...
abvw/js/login.js
View file @
d4929ff5
...
@@ -464,7 +464,6 @@ LOGIN.saveServiceUserOption = function(){
...
@@ -464,7 +464,6 @@ LOGIN.saveServiceUserOption = function(){
else
if
(
option
.
serviceOptionId
==
61
)
{
else
if
(
option
.
serviceOptionId
==
61
)
{
ClientData
.
serviceOpt_web_screen_lock_wait
(
option
.
value
);
ClientData
.
serviceOpt_web_screen_lock_wait
(
option
.
value
);
}
}
else
if
(
option
.
serviceOptionId
==
70
)
{
else
if
(
option
.
serviceOptionId
==
70
)
{
ClientData
.
serviceOpt_catalog_edition
(
option
.
value
);
ClientData
.
serviceOpt_catalog_edition
(
option
.
value
);
}
}
...
@@ -489,6 +488,12 @@ LOGIN.saveServiceUserOption = function(){
...
@@ -489,6 +488,12 @@ LOGIN.saveServiceUserOption = function(){
else
if
(
option
.
serviceOptionId
==
78
)
{
else
if
(
option
.
serviceOptionId
==
78
)
{
ClientData
.
serviceOpt_content_share
(
option
.
value
);
ClientData
.
serviceOpt_content_share
(
option
.
value
);
}
}
else
if
(
option
.
serviceOptionId
==
12
)
{
ClientData
.
serviceOpt_apns
(
option
.
value
);
}
else
if
(
option
.
serviceOptionId
==
49
)
{
ClientData
.
serviceOpt_usable_push_message
(
option
.
value
);
}
});
});
};
};
...
...
abvw/js/settings.js
View file @
d4929ff5
...
@@ -108,6 +108,15 @@ $(document).ready(function () {
...
@@ -108,6 +108,15 @@ $(document).ready(function () {
$
(
"#dspOptRes"
).
css
(
'visibility'
,
'hidden'
);
$
(
"#dspOptRes"
).
css
(
'visibility'
,
'hidden'
);
}
}
}
}
//プッシュメッセージ判定
if
(
ClientData
.
serviceOpt_apns
()
==
'Y'
||
ClientData
.
serviceOpt_usable_push_message
()
==
'Y'
){
//プッシュメッセージ表示
$
(
'#dspPushMessage'
).
show
();
}
else
{
$
(
'#dspPushMessage'
).
hide
();
}
});
});
/*
/*
...
...
abvw/settings.html
View file @
d4929ff5
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
</ul>
</ul>
</div>
</div>
<ul
class=
"button"
>
<ul
class=
"button"
>
<li
class=
"floatL"
>
<li
class=
"floatL"
id=
"dspPushMessage"
style=
"display:none;"
>
<a
href=
"#"
id=
"liPushMessage"
><span
class=
"pushMessage"
><span
class=
"icon"
></span>
<span
class=
"lang"
lang=
"txtPushAlert"
>
<!--新着 : -->
</span><span
id=
"numbermessage"
></span><span
class=
"arrow"
></span></span></a>
<a
href=
"#"
id=
"liPushMessage"
><span
class=
"pushMessage"
><span
class=
"icon"
></span>
<span
class=
"lang"
lang=
"txtPushAlert"
>
<!--新着 : -->
</span><span
id=
"numbermessage"
></span><span
class=
"arrow"
></span></span></a>
<div
id=
"accordion"
style=
"display:none;"
>
<div
id=
"accordion"
style=
"display:none;"
>
<div
id=
"show-push-message"
></div>
<div
id=
"show-push-message"
></div>
...
...
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