Commit 8532f402 by Kim Gyeongeun

#32343 コンテンツダウンロード機能追加バグ修正

parent f324e790
...@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment