From 2fcd367399ce63b348dd2e7d91b0d1c29dcefac6 Mon Sep 17 00:00:00 2001 From: wsuu Date: Tue, 30 Dec 2014 12:31:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=BF=87chrome=E4=B8=8B?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=9B=BE=E7=89=87=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复过chrome下上传出错的bug --- dialogs/image/image.js | 1 + 1 file changed, 1 insertion(+) diff --git a/dialogs/image/image.js b/dialogs/image/image.js index 9e9e7a3b..f569d8ad 100755 --- a/dialogs/image/image.js +++ b/dialogs/image/image.js @@ -185,6 +185,7 @@ uploadComplete: function(r){ var me = this; try{ + r=r.substring(r.indexOf('{'),r.indexOf('}')+1); var json = eval('('+r+')'); Base.callback(me.editor, me.dialog, json.url, json.state); }catch (e){