|
@ -160,13 +160,16 @@ |
|
|
|
|
|
|
|
|
json = (typeof JSON.parse !== "undefined") ? JSON.parse(json) : eval("(" + json + ")"); |
|
|
json = (typeof JSON.parse !== "undefined") ? JSON.parse(json) : eval("(" + json + ")"); |
|
|
|
|
|
|
|
|
if (json.success === 1) |
|
|
|
|
|
|
|
|
if(!settings.crossDomainUpload) |
|
|
{ |
|
|
{ |
|
|
dialog.find("[data-url]").val(json.url); |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
alert(json.message); |
|
|
|
|
|
|
|
|
if (json.success === 1) |
|
|
|
|
|
{ |
|
|
|
|
|
dialog.find("[data-url]").val(json.url); |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
alert(json.message); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return false; |
|
|
return false; |
|
|