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
84369192
Commit
84369192
authored
Apr 03, 2015
by
vietdo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#15763 プッシュ通知が無効ならヘッダの「通知」ボタンを非表示にする
parent
0587e6fe
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
1 deletions
+36
-1
abvw/common/js/common.js
+21
-1
abvw/js/home.js
+9
-0
abvw/js/login.js
+6
-0
No files found.
abvw/common/js/common.js
View file @
84369192
...
@@ -217,7 +217,10 @@ COMMON.Keys = {
...
@@ -217,7 +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'
,
// Local :共通(common)_コンテンツID:Integer
// Local :共通(common)_コンテンツID:Integer
...
@@ -1250,6 +1253,23 @@ var ClientData = {
...
@@ -1250,6 +1253,23 @@ var ClientData = {
}
}
},
},
// 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 :事業者オプション(serviceOpt)_カタログエディション:Char(Y:可能, N:不可)
// Session :事業者オプション(serviceOpt)_カタログエディション:Char(Y:可能, N:不可)
serviceOpt_catalog_edition
:
function
(
data
)
{
serviceOpt_catalog_edition
:
function
(
data
)
{
...
...
abvw/js/home.js
View file @
84369192
...
@@ -150,6 +150,11 @@ $(document).ready(function () {
...
@@ -150,6 +150,11 @@ $(document).ready(function () {
});
});
}
}
}
}
console
.
log
(
ClientData
.
serviceOpt_apns
());
console
.
log
(
ClientData
.
serviceOpt_usable_push_message
());
if
((
ClientData
.
serviceOpt_apns
()
==
'Y'
)
&&
(
ClientData
.
serviceOpt_usable_push_message
()
==
'Y'
))
{
$
(
'#dspPushMessage'
).
show
();
}
$
(
'body'
).
click
(
HOME
.
bodyHomeClickFunction
);
$
(
'body'
).
click
(
HOME
.
bodyHomeClickFunction
);
if
(
COMMON
.
isTouchDevice
()
==
true
)
{
if
(
COMMON
.
isTouchDevice
()
==
true
)
{
...
@@ -180,6 +185,10 @@ $(document).ready(function () {
...
@@ -180,6 +185,10 @@ $(document).ready(function () {
HEADER
.
checkForceChangePassword
();
HEADER
.
checkForceChangePassword
();
}
}
//日比谷用設定ボタン隠す
//日比谷用設定ボタン隠す
$
(
'#dspHibiya'
).
hide
();
$
(
'#dspHibiya'
).
hide
();
...
...
abvw/js/login.js
View file @
84369192
...
@@ -489,6 +489,12 @@ LOGIN.saveServiceUserOption = function(){
...
@@ -489,6 +489,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
);
}
});
});
};
};
...
...
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