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
c48a078a
Commit
c48a078a
authored
Feb 06, 2015
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ダウンロード対応
parent
a20cfa02
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
125 additions
and
25 deletions
+125
-25
abvw/css/layout/list_shirori_detail.css
+1
-1
abvw/inc_detail.html
+2
-1
abvw/js/bookmark.js
+21
-2
abvw/js/contentsearch.js
+40
-6
abvw/js/contentview.js
+3
-0
abvw/js/contentview_GetData.js
+3
-2
abvw/js/detail.js
+34
-1
abvw/js/header.js
+4
-2
abvw/js/history.js
+8
-4
abvw/js/home.js
+9
-6
No files found.
abvw/css/layout/list_shirori_detail.css
View file @
c48a078a
...
@@ -162,7 +162,7 @@
...
@@ -162,7 +162,7 @@
margin-right
:
auto
;
margin-right
:
auto
;
margin-left
:
auto
;
margin-left
:
auto
;
padding-top
:
124px
;
padding-top
:
124px
;
width
:
18
0px
;
width
:
20
0px
;
}
}
.sectiondetailnopdf
#book_data
.book_img
{
.sectiondetailnopdf
#book_data
.book_img
{
height
:
145px
;
height
:
145px
;
...
...
abvw/inc_detail.html
View file @
c48a078a
...
@@ -10,7 +10,8 @@
...
@@ -10,7 +10,8 @@
<li
class=
"explain"
id=
"txtContentDetail"
>
スマートデバイス向け
<br
/>
統合ソリューション
</li>
<li
class=
"explain"
id=
"txtContentDetail"
>
スマートデバイス向け
<br
/>
統合ソリューション
</li>
</ul>
</ul>
<p
class=
"read_btn"
><a
class=
"read lang"
href=
"javascript:void(0);"
id=
"contentdetail_dspRead"
lang=
"txtRead"
>
読む
</a></p>
<p
class=
"read_btn"
><a
class=
"read lang"
href=
"javascript:void(0);"
id=
"contentdetail_dspRead"
lang=
"txtRead"
>
読む
</a></p>
<p
class=
"read_btn"
><a
class=
"read lang"
href=
"javascript:void(0);"
id=
"contentdetail_dspShare"
lang=
"txtShare"
style=
"display:none;"
>
共有
</a></p>
<p
class=
"read_btn"
><a
class=
"read"
href=
"javascript:void(0);"
id=
"contentdetail_dspDownload"
style=
"display:none;"
>
ダウンロード
</a></p>
<p
class=
"read_btn"
style=
"display:none;"
><a
class=
"read lang"
href=
"javascript:void(0);"
id=
"contentdetail_dspShare"
lang=
"txtShare"
style=
"display:none;"
>
共有
</a></p>
</div>
</div>
<div
id=
"book_list"
></div>
<div
id=
"book_list"
></div>
</section>
</section>
...
...
abvw/js/bookmark.js
View file @
c48a078a
...
@@ -59,7 +59,11 @@ $(document).ready(function () {
...
@@ -59,7 +59,11 @@ $(document).ready(function () {
$
(
"a[name='dspRead']"
).
unbind
(
'click'
);
$
(
"a[name='dspRead']"
).
unbind
(
'click'
);
$
(
"a[name='dspRead']"
).
click
(
BOOKMARK
.
dspRead_Click
);
$
(
"a[name='dspRead']"
).
click
(
BOOKMARK
.
dspRead_Click
);
//ダイハツ対応
$
(
"a[name='dspDownload']"
).
unbind
(
'click'
);
$
(
"a[name='dspDownload']"
).
click
(
BOOKMARK
.
downloadFunction
);
BOOKMARK
.
HideSorting
();
BOOKMARK
.
HideSorting
();
// Default sort is タイトル名, default is asc
// Default sort is タイトル名, default is asc
...
@@ -347,6 +351,9 @@ BOOKMARK.ShowBookmark = function() {
...
@@ -347,6 +351,9 @@ BOOKMARK.ShowBookmark = function() {
}
}
$
(
"a[name='dspRead']"
).
unbind
(
'click'
);
$
(
"a[name='dspRead']"
).
unbind
(
'click'
);
$
(
"a[name='dspRead']"
).
click
(
BOOKMARK
.
dspRead_Click
);
$
(
"a[name='dspRead']"
).
click
(
BOOKMARK
.
dspRead_Click
);
//ダイハツ対応
$
(
"a[name='dspDownload']"
).
unbind
(
'click'
);
$
(
"a[name='dspDownload']"
).
click
(
BOOKMARK
.
downloadFunction
);
}
}
};
};
// Hide all sorting symbol
// Hide all sorting symbol
...
@@ -636,7 +643,7 @@ BOOKMARK.insertRow = function(contentid, pageThumbnail, pageTitle, pageText, pag
...
@@ -636,7 +643,7 @@ BOOKMARK.insertRow = function(contentid, pageThumbnail, pageTitle, pageText, pag
console
.
log
(
"BOOKMARK.download[contentid]:"
+
BOOKMARK
.
download
[
contentid
]);
console
.
log
(
"BOOKMARK.download[contentid]:"
+
BOOKMARK
.
download
[
contentid
]);
if
(
BOOKMARK
.
download
[
contentid
]
==
'1'
){
if
(
BOOKMARK
.
download
[
contentid
]
==
'1'
){
newRow
+=
"<a class='read read_download' name='dspDownload'
value='
'>ダウンロード</a>"
;
newRow
+=
"<a class='read read_download' name='dspDownload'
contentid='"
+
contentid
+
"
'>ダウンロード</a>"
;
}
}
newRow
+=
'</li>'
;
newRow
+=
'</li>'
;
...
@@ -954,3 +961,15 @@ BOOKMARK.cssInit = function(){
...
@@ -954,3 +961,15 @@ BOOKMARK.cssInit = function(){
});
});
};
};
BOOKMARK
.
downloadFunction
=
function
(
e
)
{
if
(
e
)
{
e
.
preventDefault
();
}
var
contentId
=
$
(
this
).
attr
(
'contentid'
);
//Download content
HEADER
.
downloadResourceById
(
contentId
);
};
abvw/js/contentsearch.js
View file @
c48a078a
...
@@ -50,10 +50,9 @@ $(document).ready(function(){
...
@@ -50,10 +50,9 @@ $(document).ready(function(){
CONTENTSEARCH
.
renderGridView
();
CONTENTSEARCH
.
renderGridView
();
//Go To Details Page
//Go To Details Page
$
(
'canvas'
).
live
(
'click'
,
CONTENTSEARCH
.
canvasClickFunction
);
$
(
'#main-ws canvas'
).
live
(
'click'
,
CONTENTSEARCH
.
canvasClickFunction
);
//$('canvas').live('touchstart', CONTENTSEARCH.canvasClickFunction);
$
(
'#main-ws canvas'
).
live
(
'touchend'
,
CONTENTSEARCH
.
canvasClickFunction
);
$
(
'canvas'
).
live
(
'touchend'
,
CONTENTSEARCH
.
canvasClickFunction
);
$
(
'#main-ws canvas'
).
live
(
'touchmove'
,
function
()
{
CONTENTSEARCH
.
home_isMove
=
true
;
});
$
(
'canvas'
).
live
(
'touchmove'
,
function
()
{
CONTENTSEARCH
.
home_isMove
=
true
;
});
//Open dialog
//Open dialog
$
(
'.dialog'
).
live
(
'click'
,
CONTENTSEARCH
.
titleClickFunction
);
$
(
'.dialog'
).
live
(
'click'
,
CONTENTSEARCH
.
titleClickFunction
);
...
@@ -84,6 +83,11 @@ $(document).ready(function(){
...
@@ -84,6 +83,11 @@ $(document).ready(function(){
$
(
'.button-share'
).
live
(
'touchend'
,
CONTENTSEARCH
.
showContentShareDlgFunction
);
$
(
'.button-share'
).
live
(
'touchend'
,
CONTENTSEARCH
.
showContentShareDlgFunction
);
$
(
'.button-share'
).
live
(
'touchmove'
,
function
()
{
CONTENTSEARCH
.
home_isMove
=
true
;
});
$
(
'.button-share'
).
live
(
'touchmove'
,
function
()
{
CONTENTSEARCH
.
home_isMove
=
true
;
});
//ダイハツ
$
(
'.button-download'
).
live
(
'click'
,
CONTENTSEARCH
.
downloadSubmenuFunction
);
$
(
'.button-download'
).
live
(
'touchend'
,
CONTENTSEARCH
.
downloadSubmenuFunction
);
$
(
'.button-download'
).
live
(
'touchmove'
,
function
()
{
CONTENTSEARCH
.
home_isMove
=
true
;
});
$
(
'#main-search'
).
click
(
CONTENTSEARCH
.
searchEventButtonFunction
);
$
(
'#main-search'
).
click
(
CONTENTSEARCH
.
searchEventButtonFunction
);
$
(
'#txtSearch'
).
keydown
(
CONTENTSEARCH
.
mainSearchKeyDownFunction
);
$
(
'#txtSearch'
).
keydown
(
CONTENTSEARCH
.
mainSearchKeyDownFunction
);
...
@@ -188,6 +192,9 @@ CONTENTSEARCH.initialScreen = function(){
...
@@ -188,6 +192,9 @@ CONTENTSEARCH.initialScreen = function(){
///Render Content
///Render Content
CONTENTSEARCH
.
renderContent
=
function
(
id
,
text
,
division
,
type
,
order
,
from
,
to
,
cateid
,
grpid
){
CONTENTSEARCH
.
renderContent
=
function
(
id
,
text
,
division
,
type
,
order
,
from
,
to
,
cateid
,
grpid
){
console
.
log
(
"CONTENTSEARCH.renderContent"
);
var
params
=
{
var
params
=
{
sid
:
id
,
sid
:
id
,
searchText
:
text
,
searchText
:
text
,
...
@@ -197,7 +204,8 @@ CONTENTSEARCH.renderContent = function(id, text, division, type, order, from, to
...
@@ -197,7 +204,8 @@ CONTENTSEARCH.renderContent = function(id, text, division, type, order, from, to
recordFrom
:
from
,
recordFrom
:
from
,
recordTo
:
to
,
recordTo
:
to
,
genreId
:
cateid
,
genreId
:
cateid
,
groupId
:
grpid
groupId
:
grpid
,
authCode
:
ClientData
.
authCode
()
};
};
CONTENTSEARCH
.
abapi
(
'webContentList'
,
params
,
'POST'
,
function
(
data
)
{
CONTENTSEARCH
.
abapi
(
'webContentList'
,
params
,
'POST'
,
function
(
data
)
{
...
@@ -229,7 +237,7 @@ CONTENTSEARCH.renderContent = function(id, text, division, type, order, from, to
...
@@ -229,7 +237,7 @@ CONTENTSEARCH.renderContent = function(id, text, division, type, order, from, to
+
' <ul class="pic">'
+
' <ul class="pic">'
+
' <li><img src="'
+
COMMON
.
DEFAULT_IMG_OPTION_MEMO
+
'" id="imgMemo'
+
post
.
contentId
+
'" class="sticker" /></li>'
+
' <li><img src="'
+
COMMON
.
DEFAULT_IMG_OPTION_MEMO
+
'" id="imgMemo'
+
post
.
contentId
+
'" class="sticker" /></li>'
+
' <li><img src="'
+
COMMON
.
DEFAULT_IMG_OPTION_MARKING
+
'" id="imgBookMark'
+
post
.
contentId
+
'" class="pen" /></li>'
+
' <li><img src="'
+
COMMON
.
DEFAULT_IMG_OPTION_MARKING
+
'" id="imgBookMark'
+
post
.
contentId
+
'" class="pen" /></li>'
+
' <li><ul class="iconList">{share}<li><a class="read lang button-details" contentid="'
+
post
.
contentId
+
'" lang="txtRead">読む</a></li></ul></li>'
+
' <li><ul class="iconList">{share}
{download}
<li><a class="read lang button-details" contentid="'
+
post
.
contentId
+
'" lang="txtRead">読む</a></li></ul></li>'
+
' </ul>'
+
' </ul>'
+
' </div>'
+
' </div>'
+
' </div>'
+
' </div>'
...
@@ -242,6 +250,14 @@ CONTENTSEARCH.renderContent = function(id, text, division, type, order, from, to
...
@@ -242,6 +250,14 @@ CONTENTSEARCH.renderContent = function(id, text, division, type, order, from, to
}
}
htmlTemp
=
htmlTemp
.
replace
(
/
\{
share
\}
/g
,
shareHtml
);
htmlTemp
=
htmlTemp
.
replace
(
/
\{
share
\}
/g
,
shareHtml
);
//ダイハツ対応
console
.
log
(
"downloadHtml:"
+
post
.
download
);
var
downloadHtml
=
""
;
if
(
post
.
download
==
'1'
){
downloadHtml
=
'<li><a class="read button-download" contentid="'
+
post
.
contentId
+
'" >ダウンロード</a></li>'
;
}
htmlTemp
=
htmlTemp
.
replace
(
/
\{
download
\}
/g
,
downloadHtml
);
$
(
'#content-grid'
).
append
(
htmlTemp
);
$
(
'#content-grid'
).
append
(
htmlTemp
);
CONTENTSEARCH
.
getNextRecordNumForList
();
CONTENTSEARCH
.
getNextRecordNumForList
();
...
@@ -1426,3 +1442,21 @@ CONTENTSEARCH.cssInit = function(){
...
@@ -1426,3 +1442,21 @@ CONTENTSEARCH.cssInit = function(){
});
});
};
};
//ダウンロードButton CLick
CONTENTSEARCH
.
downloadSubmenuFunction
=
function
(
e
)
{
if
(
e
)
{
e
.
preventDefault
();
}
if
(
CONTENTSEARCH
.
home_isMove
==
true
)
{
CONTENTSEARCH
.
home_isMove
=
false
;
return
;
}
var
contentId
=
$
(
this
).
attr
(
'contentid'
);
//Download content
HEADER
.
downloadResourceById
(
contentId
);
};
abvw/js/contentview.js
View file @
c48a078a
...
@@ -1092,6 +1092,9 @@ CONTENTVIEW.changePage = function(page_index) {
...
@@ -1092,6 +1092,9 @@ CONTENTVIEW.changePage = function(page_index) {
/* add event draw on canvas */
/* add event draw on canvas */
CONTENTVIEW
.
drawOnCanvas
=
function
()
{
CONTENTVIEW
.
drawOnCanvas
=
function
()
{
console
.
log
(
"CONTENTVIEW.drawOnCanvas start"
);
CONTENTVIEW_GENERAL
.
tool
=
new
CONTENTVIEW
.
tool_drawing
();
CONTENTVIEW_GENERAL
.
tool
=
new
CONTENTVIEW
.
tool_drawing
();
if
(
COMMON
.
isTouchDevice
()
==
true
)
{
if
(
COMMON
.
isTouchDevice
()
==
true
)
{
CONTENTVIEW_PAINT
.
initializeCanvas
(
document
.
getElementById
(
'draw_canvas'
));
CONTENTVIEW_PAINT
.
initializeCanvas
(
document
.
getElementById
(
'draw_canvas'
));
...
...
abvw/js/contentview_GetData.js
View file @
c48a078a
...
@@ -1082,9 +1082,10 @@ console.log("222");
...
@@ -1082,9 +1082,10 @@ console.log("222");
}
else
{
}
else
{
console
.
log
(
"333"
);
CONTENTVIEW_GENERAL
.
contentID
=
ClientData
.
contentInfo_contentId
();
CONTENTVIEW_GENERAL
.
contentID
=
ClientData
.
contentInfo_contentId
();
console
.
log
(
"333:"
+
CONTENTVIEW_GENERAL
.
contentID
);
}
}
};
};
...
...
abvw/js/detail.js
View file @
c48a078a
...
@@ -34,6 +34,7 @@ DETAIL.openContentDetail = function() {
...
@@ -34,6 +34,7 @@ DETAIL.openContentDetail = function() {
contentDetail
:
""
,
contentDetail
:
""
,
contentShare
:
""
,
contentShare
:
""
,
contentThumbnail
:
""
,
contentThumbnail
:
""
,
contentDownload
:
"0"
,
deliveryDate
:
(
new
Date
()),
deliveryDate
:
(
new
Date
()),
pages
:
[]
pages
:
[]
};
};
...
@@ -57,6 +58,8 @@ DETAIL.openContentDetail = function() {
...
@@ -57,6 +58,8 @@ DETAIL.openContentDetail = function() {
$
(
"#contentdetail_dspShare"
).
hide
();
$
(
"#contentdetail_dspShare"
).
hide
();
//}
//}
$
(
"#contentdetail_dspDownload"
).
hide
();
COMMON
.
lockLayout
();
COMMON
.
lockLayout
();
$
(
"#contentDetail"
).
css
(
'z-index'
,
101
);
$
(
"#contentDetail"
).
css
(
'z-index'
,
101
);
$
(
"#sectionContentDetail"
).
show
();
$
(
"#sectionContentDetail"
).
show
();
...
@@ -70,8 +73,15 @@ DETAIL.openContentDetail = function() {
...
@@ -70,8 +73,15 @@ DETAIL.openContentDetail = function() {
DETAIL
.
displayData
.
contentID
=
ClientData
.
contentInfo_contentId
();
DETAIL
.
displayData
.
contentID
=
ClientData
.
contentInfo_contentId
();
DETAIL
.
displayData
.
contentThumbnail
=
ClientData
.
contentInfo_contentThumbnail
();
DETAIL
.
displayData
.
contentThumbnail
=
ClientData
.
contentInfo_contentThumbnail
();
var
params
=
{
sid
:
ClientData
.
userInfo_sid
(),
getType
:
'1'
,
contentId
:
DETAIL
.
displayData
.
contentID
,
authCode
:
ClientData
.
authCode
()
};
// Get content detail
// Get content detail
AVWEB
.
avwCmsApi
(
ClientData
.
userInfo_accountPath
(),
"webGetContent"
,
"GET"
,
{
contentId
:
DETAIL
.
displayData
.
contentID
,
sid
:
ClientData
.
userInfo_sid
(),
getType
:
1
}
,
AVWEB
.
avwCmsApi
(
ClientData
.
userInfo_accountPath
(),
"webGetContent"
,
"GET"
,
params
,
function
(
data
)
{
function
(
data
)
{
var
contentType
=
ClientData
.
contentInfo_contentType
();
var
contentType
=
ClientData
.
contentInfo_contentType
();
// Get content detail
// Get content detail
...
@@ -84,6 +94,7 @@ DETAIL.openContentDetail = function() {
...
@@ -84,6 +94,7 @@ DETAIL.openContentDetail = function() {
}
}
}
}
DETAIL
.
displayData
.
deliveryDate
=
COMMON
.
convertToDate
(
data
.
contentData
.
deliveryStartDate
);
DETAIL
.
displayData
.
deliveryDate
=
COMMON
.
convertToDate
(
data
.
contentData
.
deliveryStartDate
);
DETAIL
.
displayData
.
contentDownload
=
data
.
download
;
//Start Function : No.12 -- Editor : Viet Nguyen -- Date : 08/01/2013 -- Summary : Create new function to return content type of content.
//Start Function : No.12 -- Editor : Viet Nguyen -- Date : 08/01/2013 -- Summary : Create new function to return content type of content.
if
(
!
COMMON
.
isPdfContent
(
contentType
)){
if
(
!
COMMON
.
isPdfContent
(
contentType
)){
...
@@ -238,6 +249,11 @@ DETAIL.showContentNotPDF = function(displayData) {
...
@@ -238,6 +249,11 @@ DETAIL.showContentNotPDF = function(displayData) {
$
(
"#contentdetail_dspShare"
).
show
();
$
(
"#contentdetail_dspShare"
).
show
();
$
(
"#contentdetail_dspShare"
).
click
(
SHARE
.
openContentShare
);
$
(
"#contentdetail_dspShare"
).
click
(
SHARE
.
openContentShare
);
}
}
//ダウンロード
if
(
displayData
.
contentDownload
==
'1'
){
$
(
"#contentdetail_dspDownload"
).
show
();
$
(
"#contentdetail_dspDownload"
).
click
(
DETAIL
.
downloadFunction
);
}
var
tempContentType
=
ClientData
.
contentInfo_contentType
();
var
tempContentType
=
ClientData
.
contentInfo_contentType
();
...
@@ -293,6 +309,11 @@ DETAIL.showContent = function(displayData) {
...
@@ -293,6 +309,11 @@ DETAIL.showContent = function(displayData) {
$
(
"#contentdetail_dspShare"
).
show
();
$
(
"#contentdetail_dspShare"
).
show
();
$
(
"#contentdetail_dspShare"
).
click
(
SHARE
.
openContentShare
);
$
(
"#contentdetail_dspShare"
).
click
(
SHARE
.
openContentShare
);
}
}
//ダウンロード
if
(
displayData
.
contentDownload
==
'1'
){
$
(
"#contentdetail_dspDownload"
).
show
();
$
(
"#contentdetail_dspDownload"
).
click
(
DETAIL
.
downloadFunction
);
}
$
(
"#imgContentThumbnail"
).
attr
(
"src"
,
displayData
.
contentThumbnail
);
$
(
"#imgContentThumbnail"
).
attr
(
"src"
,
displayData
.
contentThumbnail
);
var
imgTemp
=
new
Image
();
var
imgTemp
=
new
Image
();
...
@@ -381,3 +402,15 @@ DETAIL.resetLoadingImageSize = function(){
...
@@ -381,3 +402,15 @@ DETAIL.resetLoadingImageSize = function(){
$
(
"#imgContentThumbnail"
).
attr
(
'height'
,
'25px'
);
$
(
"#imgContentThumbnail"
).
attr
(
'height'
,
'25px'
);
$
(
"#imgContentThumbnail"
).
attr
(
'width'
,
'25px'
);
$
(
"#imgContentThumbnail"
).
attr
(
'width'
,
'25px'
);
};
};
DETAIL
.
downloadFunction
=
function
(
e
)
{
if
(
e
)
{
e
.
preventDefault
();
}
var
contentId
=
ClientData
.
contentInfo_contentId
();
//Download content
HEADER
.
downloadResourceById
(
contentId
);
};
abvw/js/header.js
View file @
c48a078a
...
@@ -1074,7 +1074,8 @@ HEADER.downloadResourceById = function(contentId){
...
@@ -1074,7 +1074,8 @@ HEADER.downloadResourceById = function(contentId){
var
params
=
{
var
params
=
{
sid
:
ClientData
.
userInfo_sid
(),
sid
:
ClientData
.
userInfo_sid
(),
contentId
:
contentId
,
contentId
:
contentId
,
getType
:
'2'
getType
:
'2'
,
authCode
:
ClientData
.
authCode
()
};
};
AVWEB
.
avwCmsApiSync
(
ClientData
.
userInfo_accountPath
(),
"webGetContent"
,
"get"
,
params
,
AVWEB
.
avwCmsApiSync
(
ClientData
.
userInfo_accountPath
(),
"webGetContent"
,
"get"
,
params
,
function
(
data
)
{
function
(
data
)
{
...
@@ -1119,7 +1120,8 @@ HEADER.viewLinkContentById = function(contentId){
...
@@ -1119,7 +1120,8 @@ HEADER.viewLinkContentById = function(contentId){
var
params
=
{
var
params
=
{
sid
:
ClientData
.
userInfo_sid
(),
sid
:
ClientData
.
userInfo_sid
(),
contentId
:
contentId
,
contentId
:
contentId
,
getType
:
'2'
getType
:
'2'
,
authCode
:
ClientData
.
authCode
()
};
};
AVWEB
.
avwCmsApiSync
(
ClientData
.
userInfo_accountPath
(),
"webGetContent"
,
"get"
,
params
,
AVWEB
.
avwCmsApiSync
(
ClientData
.
userInfo_accountPath
(),
"webGetContent"
,
"get"
,
params
,
function
(
data
)
{
function
(
data
)
{
...
...
abvw/js/history.js
View file @
c48a078a
...
@@ -49,10 +49,9 @@ $(document).ready(function(){
...
@@ -49,10 +49,9 @@ $(document).ready(function(){
HISTORY
.
renderGridView
();
HISTORY
.
renderGridView
();
//Go To Details Page
//Go To Details Page
$
(
'canvas'
).
live
(
'click'
,
HISTORY
.
canvasClickFunction
);
$
(
'#main-ws canvas'
).
live
(
'click'
,
HISTORY
.
canvasClickFunction
);
//$('canvas').live('touchstart', HISTORY.canvasClickFunction);
$
(
'#main-ws canvas'
).
live
(
'touchend'
,
HISTORY
.
canvasClickFunction
);
$
(
'canvas'
).
live
(
'touchend'
,
HISTORY
.
canvasClickFunction
);
$
(
'#main-ws canvas'
).
live
(
'touchmove'
,
function
()
{
HISTORY
.
home_isMove
=
true
;
});
$
(
'canvas'
).
live
(
'touchmove'
,
function
()
{
HISTORY
.
home_isMove
=
true
;
});
//Open dialog
//Open dialog
...
@@ -1206,6 +1205,11 @@ HISTORY.getContentNameKana = function(strContentId) {
...
@@ -1206,6 +1205,11 @@ HISTORY.getContentNameKana = function(strContentId) {
Check content whether existed or not
Check content whether existed or not
*/
*/
HISTORY
.
IsExistContent
=
function
(
strContentId
)
{
HISTORY
.
IsExistContent
=
function
(
strContentId
)
{
if
(
strContentId
==
null
||
strContentId
==
""
){
return
false
;
}
var
isExisted
=
true
;
var
isExisted
=
true
;
var
params
=
{
var
params
=
{
sid
:
ClientData
.
userInfo_sid
(),
sid
:
ClientData
.
userInfo_sid
(),
...
...
abvw/js/home.js
View file @
c48a078a
...
@@ -92,10 +92,9 @@ $(document).ready(function () {
...
@@ -92,10 +92,9 @@ $(document).ready(function () {
$
(
'#control-list-type'
).
click
(
HOME
.
changeDispListFunction
);
$
(
'#control-list-type'
).
click
(
HOME
.
changeDispListFunction
);
//Go To Details Page
//Go To Details Page
$
(
'canvas'
).
live
(
'click'
,
HOME
.
canvasClickFunction
);
$
(
'#main-ws canvas'
).
live
(
'click'
,
HOME
.
canvasClickFunction
);
//$('canvas').live('touchstart', HOME.canvasClickFunction);
$
(
'#main-ws canvas'
).
live
(
'touchend'
,
HOME
.
canvasClickFunction
);
$
(
'canvas'
).
live
(
'touchend'
,
HOME
.
canvasClickFunction
);
$
(
'#main-ws canvas'
).
live
(
'touchmove'
,
function
()
{
HOME
.
home_isMove
=
true
;
});
$
(
'canvas'
).
live
(
'touchmove'
,
function
()
{
HOME
.
home_isMove
=
true
;
});
//Open dialog
//Open dialog
$
(
'.dialog'
).
live
(
'click'
,
HOME
.
openSubMenuDialogFunction
);
$
(
'.dialog'
).
live
(
'click'
,
HOME
.
openSubMenuDialogFunction
);
...
@@ -158,7 +157,7 @@ $(document).ready(function () {
...
@@ -158,7 +157,7 @@ $(document).ready(function () {
//Button details on dialog click event
//Button details on dialog click event
$
(
'#dialog-download'
).
click
(
HOME
.
downloadSubmenuFunction
);
$
(
'#dialog-download'
).
click
(
HOME
.
downloadSubmenuFunction
);
$
(
'.button-download'
).
live
(
'click'
,
HOME
.
downloadSubmenuFunction
);
$
(
'.button-download'
).
live
(
'click'
,
HOME
.
downloadSubmenuFunction
);
$
(
'.button-download'
).
live
(
'touchend'
,
HOME
.
downloadSubmenuFunction
);
$
(
'.button-download'
).
live
(
'touchend'
,
HOME
.
downloadSubmenuFunction
);
$
(
'.button-download'
).
live
(
'touchmove'
,
function
()
{
HOME
.
home_isMove
=
true
;
});
$
(
'.button-download'
).
live
(
'touchmove'
,
function
()
{
HOME
.
home_isMove
=
true
;
});
...
@@ -575,6 +574,9 @@ HOME.canvasClickFunction = function(e) {
...
@@ -575,6 +574,9 @@ HOME.canvasClickFunction = function(e) {
HOME
.
canvasClickFunction_callback
=
function
(
outputId
)
HOME
.
canvasClickFunction_callback
=
function
(
outputId
)
{
{
console
.
log
(
"HOME.canvasClickFunction_callback:"
+
outputId
);
var
date
=
new
Date
();
var
date
=
new
Date
();
var
month
=
date
.
getMonth
()
+
1
;
var
month
=
date
.
getMonth
()
+
1
;
var
day
=
date
.
getDate
();
var
day
=
date
.
getDate
();
...
@@ -2330,7 +2332,8 @@ HOME.IsExistContent = function(strContentId) {
...
@@ -2330,7 +2332,8 @@ HOME.IsExistContent = function(strContentId) {
var
params
=
{
var
params
=
{
sid
:
ClientData
.
userInfo_sid
(),
sid
:
ClientData
.
userInfo_sid
(),
getType
:
'1'
,
getType
:
'1'
,
contentId
:
strContentId
contentId
:
strContentId
,
authCode
:
ClientData
.
authCode
()
};
};
AVWEB
.
avwCmsApiSync
(
ClientData
.
userInfo_accountPath
(),
"webGetContent"
,
'GET'
,
params
,
AVWEB
.
avwCmsApiSync
(
ClientData
.
userInfo_accountPath
(),
"webGetContent"
,
'GET'
,
params
,
function
(
data
)
{
function
(
data
)
{
...
...
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