Browse Source

Merge pull request #201 from luckylh/master

跨域上传图片时,不直接进行判断是否上传图片成功
master
pandao 9 years ago
parent
commit
e7fc0049cf
  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