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
8532f402
Commit
8532f402
authored
Feb 06, 2019
by
Kim Gyeongeun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#32343 コンテンツダウンロード機能追加バグ修正
parent
f324e790
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
abvw/js/header.js
+3
-3
No files found.
abvw/js/header.js
View file @
8532f402
...
@@ -1123,7 +1123,7 @@ HEADER.downloadResourceById = function(contentId){
...
@@ -1123,7 +1123,7 @@ HEADER.downloadResourceById = function(contentId){
function
(
data
)
{
function
(
data
)
{
//Get resourceurl
//Get resourceurl
if
(
data
.
contentData
.
content
){
if
(
data
.
contentData
.
content
){
var
resourceUrl
=
HEADER
.
getResourceByIdFromAPI
(
data
.
contentData
.
content
.
resourceId
);
var
resourceUrl
=
HEADER
.
getResourceByIdFromAPI
(
data
.
contentData
.
content
.
resourceId
,
contentId
);
// open url to download file
// open url to download file
if
(
HEADER
.
isSafariNotOnIpad
())
{
if
(
HEADER
.
isSafariNotOnIpad
())
{
window
.
onbeforeunload
=
null
;
window
.
onbeforeunload
=
null
;
...
@@ -1142,8 +1142,8 @@ HEADER.downloadResourceById = function(contentId){
...
@@ -1142,8 +1142,8 @@ HEADER.downloadResourceById = function(contentId){
};
};
//Download resource
//Download resource
HEADER
.
getResourceByIdFromAPI
=
function
(
resourceId
){
HEADER
.
getResourceByIdFromAPI
=
function
(
resourceId
,
contentId
){
return
AVWEB
.
getURL
(
"webResourceDownload"
)
+
"&sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
resourceId
+
"&isDownload=true"
;
return
AVWEB
.
getURL
(
"webResourceDownload"
)
+
"&sid="
+
ClientData
.
userInfo_sid
()
+
"&resourceId="
+
resourceId
+
"&
contentId="
+
contentId
+
"&
isDownload=true"
;
};
};
// check is browser safari on Mac and Window devide ( not Ipad )
// check is browser safari on Mac and Window devide ( not Ipad )
...
...
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