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
47c2b4d2
Commit
47c2b4d2
authored
Mar 24, 2014
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ダイハツカスタム対応
parent
d20a4ea6
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
8 deletions
+53
-8
abvw/common/js/avweb.js
+13
-0
abvw/common/js/common.js
+10
-0
abvw/js/contentview.js
+12
-5
abvw/js/contentview_CreateObjects.js
+15
-2
abvw/js/login.js
+3
-1
No files found.
abvw/common/js/avweb.js
View file @
47c2b4d2
...
...
@@ -834,3 +834,15 @@ function avwLog(msg) {
console
.
log
(
msg
);
}
};
function
getApiUrl
(
accountPath
)
{
// url 構築
var
sysSettings
=
avwSysSetting
();
var
apiUrl
=
sysSettings
.
apiUrl
;
if
(
accountPath
)
{
apiUrl
=
format
(
apiUrl
,
accountPath
);
}
return
apiUrl
;
};
\ No newline at end of file
abvw/common/js/common.js
View file @
47c2b4d2
...
...
@@ -187,6 +187,8 @@ var Keys = {
serviceOpt_catalog_edition
:
'catalog_edition'
,
// Session :事業者オプション(serviceOpt)_日比谷カスタム:Char(Y:可能, N:不可)
serviceOpt_hibiyakadan_catalog
:
'hibiyakadan_catalog'
,
// Session :事業者オプション(serviceOpt)_DHカスタム:Char(Y:可能, N:不可)
serviceOpt_daihatsu
:
'daihatsu'
,
// Session :共通(common)_コンテンツID:Integer
common_contentId
:
'common_contentId'
,
...
...
@@ -1345,6 +1347,14 @@ var ClientData = {
return
SessionStorageUtils
.
get
(
Keys
.
serviceOpt_hibiyakadan_catalog
);
}
},
// Session :事業者オプション(serviceOpt)_DH対応:Char(Y:可能, N:不可)
serviceOpt_daihatsu
:
function
(
data
)
{
if
(
arguments
.
length
>
0
)
{
SessionStorageUtils
.
set
(
Keys
.
serviceOpt_daihatsu
,
data
);
}
else
{
return
SessionStorageUtils
.
get
(
Keys
.
serviceOpt_daihatsu
);
}
},
// Session :共通(common)_コンテンツID:Integer
common_contentId
:
function
(
data
)
{
...
...
abvw/js/contentview.js
View file @
47c2b4d2
...
...
@@ -1005,9 +1005,9 @@ function showErrorScreen() {
// エラーメッセージの表示
var
errMes
=
i18nText
(
'msgPageImgErr'
);
if
(
errMsg
==
undefined
||
errMsg
==
""
){
errMes
=
i18nText
(
'msgPageImgErr'
);
}
//
if( errMsg == undefined || errMsg == "" ){
//
errMes = i18nText('msgPageImgErr');
//
}
$
(
'#divImageLoading'
).
css
(
'display'
,
'none'
);
lockLayout
();
/* show error messages */
...
...
@@ -2174,7 +2174,15 @@ function displayOverlayForSpecifyContentType(){
handleForContentTypeVideo
(
resourceUrl
);
}
else
if
(
contentType
==
ContentTypeKeys
.
Type_Html
){
handleForContentTypeHTML
(
resourceUrl
);
//DHカスタム
var
linkUrlTmp
=
resourceUrl
;
//DHカスタム
if
(
ClientData
.
serviceOpt_daihatsu
()
==
'Y'
){
var
apiUrl
=
getApiUrl
(
ClientData
.
userInfo_accountPath
());
linkUrlTmp
=
linkUrlTmp
+
"?sid="
+
ClientData
.
userInfo_sid
()
+
"&apiurl="
+
apiUrl
;
}
handleForContentTypeHTML
(
linkUrlTmp
);
}
if
(
isTouchDevice
()
==
true
)
{
...
...
@@ -2383,7 +2391,6 @@ function handleForContentTypeHTML(resourceUrl){
$container
.
css
(
'width'
,
'100%'
);
$container
.
css
(
'background-color'
,
'white'
);
//START TRB00076 - EDITOR : Long - Date : 09/24/2013 - Summary : Fix for scrolling on ipad
if
(
avwUserEnvObj
.
os
==
"ipad"
){
$container
.
html
(
'<iframe src="'
+
resourceUrl
+
'" style="position: absolute; width: 100%;"></iframe>'
);
...
...
abvw/js/contentview_CreateObjects.js
View file @
47c2b4d2
...
...
@@ -1324,6 +1324,7 @@ var linkURL = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible
//abe
//alert("linkURL");
//詳細ログ作成
var
objectLog
=
new
ObjectLogEntity
();
objectLog
.
contentid
=
contentID
;
...
...
@@ -1341,7 +1342,20 @@ var linkURL = function (mediaType, actionType, id, imageUrl, x, y, w, h, visible
SetObjectLog
(
contentID
,
objectLog
);
//---
window
.
open
(
linkUrl
,
"_blank"
,
"new window, scrollbars=yes"
);
var
linkUrlTmp
=
linkUrl
;
//DHカスタム
if
(
ClientData
.
serviceOpt_daihatsu
()
==
'Y'
){
var
apiUrl
=
getApiUrl
(
ClientData
.
userInfo_accountPath
());
linkUrlTmp
=
linkUrlTmp
+
"?sid="
+
ClientData
.
userInfo_sid
()
+
"&apiurl="
+
apiUrl
;
}
if
(
browserType
==
0
){
showHtml
(
linkUrlTmp
,
objectId
);
showDialog
(
true
);
}
else
{
window
.
open
(
linkUrlTmp
,
"_blank"
,
"new window, scrollbars=yes"
);
}
};
};
linkURL
.
prototype
=
new
PageObject
();
...
...
@@ -2320,4 +2334,3 @@ function createPageBGM(){
}
};
//END : TRB00028 - Editor: Long - Date: 09/10/2013 - Summary : Fix For Page BGM
abvw/js/login.js
View file @
47c2b4d2
...
...
@@ -499,7 +499,9 @@ function saveServiceUserOption(){
else
if
(
option
.
serviceName
==
'usable_readinglog_object'
)
{
ClientData
.
serviceOpt_usable_readinglog_object
(
option
.
value
);
}
else
if
(
option
.
serviceName
==
'daihatsu'
)
{
ClientData
.
serviceOpt_daihatsu
(
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