Browse Source

跨域上传图片时,不直接进行判断是否上传图片成功

master
Frank Liu 9 years ago
parent
commit
fb9859f5d4
  1. 15
      plugins/image-dialog/image-dialog.js

15
plugins/image-dialog/image-dialog.js

@ -160,13 +160,16 @@
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;

Loading…
Cancel
Save