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
77c794f4
Commit
77c794f4
authored
Dec 15, 2015
by
vietdo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#18760 Web版で新コンテンツタイプの一覧表示、詳細画面を追加する
(Getitsを対応する)
parent
41b3f5cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
36 deletions
+30
-36
abvw/js/contentview.js
+30
-36
No files found.
abvw/js/contentview.js
View file @
77c794f4
...
...
@@ -2115,38 +2115,39 @@ CONTENTVIEW.displayOverlayForSpecifyContentType = function( resourceUrl ){
CONTENTVIEW
.
handleForContentTypeVideo
(
resourceUrl
);
}
else
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_PanoMovie
){
var
url
=
ClientData
.
conf_apiUrl
();
var
url
=
ClientData
.
conf_apiUrl
();
var
linkUrlTmp
=
AVWEB
.
format
(
url
,
ClientData
.
userInfo_accountPath
());
var
apiUrl
=
linkUrlTmp
+
"/createSession/"
;
linkUrlTmp
=
linkUrlTmp
.
substring
(
0
,
linkUrlTmp
.
length
-
6
)
+
"shop/panorama/play/"
+
ClientData
.
contentInfo_contentId
()
+
"/"
;
var
linkUrlFinish
=
linkUrlTmp
.
substring
(
0
,
linkUrlTmp
.
length
-
6
)
+
"shop/panorama/finishPlay/"
+
ClientData
.
contentInfo_contentId
()
+
"/"
;
var
params
=
{
sid
:
ClientData
.
userInfo_sid
()
};
var
sysSettings
=
AVWEB
.
avwSysSetting
();
// ajax によるAPIの実行(json)
$
.
ajax
(
{
async
:
false
,
type
:
'GET'
,
url
:
apiUrl
,
dataType
:
'text'
,
data
:
params
,
crossDomain
:
true
,
beforeSend
:
function
(
xhr
)
{
xhr
.
setRequestHeader
(
'X-AGT-AppId'
,
sysSettings
.
appName
);
xhr
.
setRequestHeader
(
'X-AGT-AppVersion'
,
sysSettings
.
appVersion
);
},
success
:
function
(
data
)
{
linkUrlTmp2
=
linkUrlTmp
+
";jsessionid="
+
data
;
console
.
log
(
"linkUrlTmp2"
+
linkUrlTmp2
);
CONTENTVIEW
.
handleForContentTypePanoMovie
(
linkUrlTmp2
);
},
error
:
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
/* call custom error process */
console
.
log
(
"error"
+
errorThrown
);
}
});
if
(
ClientData
.
isGetitsMode
()
==
true
){
CONTENTVIEW
.
handleForContentTypePanoMovie
(
linkUrlTmp
);
}
else
{
var
params
=
{
sid
:
ClientData
.
userInfo_sid
()
};
var
sysSettings
=
AVWEB
.
avwSysSetting
();
// ajax によるAPIの実行(json)
$
.
ajax
(
{
async
:
false
,
type
:
'GET'
,
url
:
apiUrl
,
dataType
:
'text'
,
data
:
params
,
crossDomain
:
true
,
beforeSend
:
function
(
xhr
)
{
xhr
.
setRequestHeader
(
'X-AGT-AppId'
,
sysSettings
.
appName
);
xhr
.
setRequestHeader
(
'X-AGT-AppVersion'
,
sysSettings
.
appVersion
);
},
success
:
function
(
data
)
{
var
linkUrlTmp2
=
linkUrlTmp
+
";jsessionid="
+
data
;
CONTENTVIEW
.
handleForContentTypePanoMovie
(
linkUrlTmp2
);
},
error
:
function
(
xmlHttpRequest
,
txtStatus
,
errorThrown
)
{
/* call custom error process */
console
.
log
(
"error"
+
errorThrown
);
}
});
}
}
else
if
(
CONTENTVIEW_GENERAL
.
contentType
==
COMMON
.
ContentTypeKeys
.
Type_Html
){
...
...
@@ -2240,13 +2241,6 @@ CONTENTVIEW.displayOverlayForSpecifyContentType = function( resourceUrl ){
});
};
CONTENTVIEW
.
deleteCookie
=
function
(){
var
cookies
=
$
.
cookie
();
console
.
log
(
"cookies"
+
cookies
);
for
(
var
cookie
in
cookies
)
{
$
.
removeCookie
(
cookie
);
}
console
.
log
(
"hello world!!"
);
}
//handle for content type = video
CONTENTVIEW
.
handleForContentTypeVideo
=
function
(
resourceUrl
){
...
...
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