From e2e4a454a7a9a92c94bdfe287695c5bfeb3a64e9 Mon Sep 17 00:00:00 2001 From: Yunlong Mao Date: Sun, 15 Jun 2014 07:27:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=9B=BE=E7=89=87=E6=97=B6?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E4=B8=AD?= =?UTF-8?q?=E7=9A=84imageFieldName=E4=BD=9C=E4=B8=BA=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dialogs/image/image.js | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/dialogs/image/image.js b/dialogs/image/image.js index b6222df1..5af39ca8 100755 --- a/dialogs/image/image.js +++ b/dialogs/image/image.js @@ -138,13 +138,16 @@ * */ var Upload = { showCount: 0, - uploadTpl: '
' + - '' + - '
' + - '' + - '
' + + createUpForm: function(i) { + var me = this; - '
', + return '
' + + '' + + '
' + + '' + + '
' + + '
' + }, init: function (editor, $w) { var me = this; @@ -169,7 +172,7 @@ render: function (sel, t) { var me = this; - $(sel, me.dialog).append($(me.uploadTpl.replace(/%%/g, t))); + $(sel, me.dialog).append($(me.createUpForm(t))); return me; }, @@ -196,7 +199,7 @@ submit: function (callback) { var me = this, - input = $( ''), + input = $( ''), input = input[0]; $(me.dialog).delegate( ".edui-image-file", "change", function ( e ) {