|
@@ -301,6 +301,7 @@ function showUploadFiles(url, name, key, cate, tag, cur, pg, upload_search, stat
|
|
|
function loadUploadL(i,e,key,url,assets)
|
|
|
{
|
|
|
var value = e.attr('v');
|
|
|
+ var call = e.attr('call');
|
|
|
if (typeof(upload[value]) != "undefined") {
|
|
|
//return;
|
|
|
}
|
|
@@ -378,7 +379,7 @@ function loadUploadL(i,e,key,url,assets)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- $.getJSON(uploadUrl.replace('save.start', 'yun.addFile'), {source:file.name,file:res.key, key:key, search:search});
|
|
|
+ $.getJSON(uploadUrl.replace('save.start', 'yun.addFile'), {source:file.name,file:res.key, key:key, search:search, call:call});
|
|
|
data.status = 1;
|
|
|
data.name = res.key;
|
|
|
data.url = host + res.key;
|
|
@@ -505,6 +506,7 @@ function qiniuHandle(id, name, token, domain, bucket, file, filename, element, e
|
|
|
function loadUpload(i,e,key,url,assets)
|
|
|
{
|
|
|
var value = e.attr('v');
|
|
|
+ var call = e.attr('call');
|
|
|
if (typeof(upload[value]) != "undefined") {
|
|
|
//return;
|
|
|
}
|
|
@@ -515,6 +517,7 @@ function loadUpload(i,e,key,url,assets)
|
|
|
|
|
|
var data = {};
|
|
|
data.key = key;
|
|
|
+ data.call = call;
|
|
|
var token = e.attr('token');
|
|
|
var host = e.attr('host');
|
|
|
var domain = e.attr('domain');
|
|
@@ -580,7 +583,7 @@ function loadUpload(i,e,key,url,assets)
|
|
|
data.name = data.key;
|
|
|
data.url = host + data.key;
|
|
|
|
|
|
- $.getJSON(uploadUrl.replace('save.start', 'qiniu.addFile'), {source:file.name,file:data.key, key:key});
|
|
|
+ $.getJSON(uploadUrl.replace('save.start', 'yun.addFile'), {source:file.name,file:data.key, key:key, call:call});
|
|
|
}
|
|
|
element.progress(id + '_progress', '0%')
|
|
|
$('#' + id + '_progress').hide();
|