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
1da5496f
Commit
1da5496f
authored
Feb 07, 2019
by
Kim Gyeongeun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#32343 コンテンツダウンロード機能追加バグ修正
parent
8532f402
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
abvw/js/history.js
+11
-5
abvw/js/home.js
+1
-1
No files found.
abvw/js/history.js
View file @
1da5496f
...
...
@@ -95,6 +95,11 @@ $(document).ready(function() {
$
(
'.button-share'
).
live
(
'touchmove'
,
function
()
{
HISTORY
.
home_isMove
=
true
;
});
//PDF download
$
(
'.button-download'
).
live
(
'click'
,
HISTORY
.
downloadFunction
);
$
(
'.button-download'
).
live
(
'touchend'
,
HISTORY
.
downloadFunction
);
$
(
'.button-download'
).
live
(
'touchmove'
,
function
()
{
HOME
.
home_isMove
=
true
;
});
$
(
window
).
resize
(
function
()
{
if
(
$
(
"#contentDetail"
).
css
(
"display"
)
!=
"none"
)
{
...
...
@@ -244,7 +249,7 @@ HISTORY.renderContent = function(id, text, division, type, order) {
var
originalViewDate
=
HISTORY
.
formatDate
(
HISTORY
.
returnOriginalViewDate
(
post
.
contentId
,
readingContentIds
));
HISTORY
.
addReadContentToArray
(
post
.
contentId
,
post
.
resourceVersion
,
post
.
metaVersion
,
post
.
contentThumbnail
,
post
.
contentTitle
,
post
.
contentNameKana
,
post
.
contentDeliveryDate
,
post
.
contentType
,
post
.
readerShare
,
originalViewDate
);
post
.
contentDeliveryDate
,
post
.
contentType
,
post
.
readerShare
,
originalViewDate
,
post
.
printFlg
);
}
}
...
...
@@ -1047,7 +1052,7 @@ HISTORY.sortByViewDateDesc = function() {
HISTORY
.
renderContentAfterSort
(
resultArr
);
};
HISTORY
.
addReadContentToArray
=
function
(
strContentId
,
strResourceVersion
,
strMetaVersion
,
strThumbnail
,
strTitle
,
strTitleKana
,
strDelivDate
,
contentType
,
readerShare
,
originalViewDate
)
{
HISTORY
.
addReadContentToArray
=
function
(
strContentId
,
strResourceVersion
,
strMetaVersion
,
strThumbnail
,
strTitle
,
strTitleKana
,
strDelivDate
,
contentType
,
readerShare
,
originalViewDate
,
printFlg
)
{
if
(
HISTORY
.
contentViewData
.
length
>
0
)
{
var
flag
=
false
;
for
(
var
j
=
0
;
j
<
HISTORY
.
contentViewData
.
length
;
j
++
)
{
...
...
@@ -1068,7 +1073,8 @@ HISTORY.addReadContentToArray = function(strContentId, strResourceVersion, strMe
metaversion
:
strMetaVersion
,
thumbnail
:
COMMON
.
formatStringBase64
(
strThumbnail
),
contenttype
:
contentType
,
readerShare
:
readerShare
readerShare
:
readerShare
,
printFlg
:
printFlg
});
}
...
...
@@ -1083,7 +1089,8 @@ HISTORY.addReadContentToArray = function(strContentId, strResourceVersion, strMe
metaversion
:
strMetaVersion
,
thumbnail
:
COMMON
.
formatStringBase64
(
strThumbnail
),
contenttype
:
contentType
,
readerShare
:
readerShare
readerShare
:
readerShare
,
printFlg
:
printFlg
});
}
};
...
...
@@ -1489,4 +1496,3 @@ HISTORY.downloadFunction = function(e) {
HEADER
.
downloadResourceById
(
contentId
);
};
abvw/js/home.js
View file @
1da5496f
...
...
@@ -158,7 +158,7 @@ $(document).ready(function() {
HOME
.
home_isMove
=
true
;
});
//
Show Share Dialog
//
PDF download
$
(
'.button-download'
).
live
(
'click'
,
HOME
.
downloadPdfFunction
);
$
(
'.button-download'
).
live
(
'touchend'
,
HOME
.
downloadPdfFunction
);
$
(
'.button-download'
).
live
(
'touchmove'
,
function
()
{
HOME
.
home_isMove
=
true
;
});
...
...
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