Commit 8532f402 by Kim Gyeongeun

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

parent f324e790
......@@ -1123,7 +1123,7 @@ HEADER.downloadResourceById = function(contentId){
function (data) {
//Get resourceurl
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
if (HEADER.isSafariNotOnIpad()) {
window.onbeforeunload = null;
......@@ -1142,8 +1142,8 @@ HEADER.downloadResourceById = function(contentId){
};
//Download resource
HEADER.getResourceByIdFromAPI = function(resourceId){
return AVWEB.getURL("webResourceDownload") + "&sid=" + ClientData.userInfo_sid() + "&resourceId=" + resourceId + "&isDownload=true";
HEADER.getResourceByIdFromAPI = function(resourceId, contentId){
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 )
......
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