Browse Source

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

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

3
plugins/image-dialog/image-dialog.js

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

Loading…
Cancel
Save