Skip to content

Commit

Permalink
修改写死在代码里的upfile
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonxu committed Jun 16, 2014
1 parent 9582f2b commit c6dae80
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dialogs/image/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,8 @@
uploadTpl: '<div class="edui-image-upload%%">' +
'<span class="edui-image-icon"></span>' +
'<form class="edui-image-form" method="post" enctype="multipart/form-data" target="up">' +
'<input style=\"filter: alpha(opacity=0);\" class="edui-image-file" type="file" hidefocus name="upfile" accept="image/gif,image/jpeg,image/png,image/jpg,image/bmp"/>' +
'<input style=\"filter: alpha(opacity=0);\" class="edui-image-file" type="file" hidefocus name="%fieldName%" accept="image/gif,image/jpeg,image/png,image/jpg,image/bmp"/>' +
'</form>' +

'</div>',
init: function (editor, $w) {
var me = this;
Expand All @@ -169,7 +168,7 @@
render: function (sel, t) {
var me = this;

$(sel, me.dialog).append($(me.uploadTpl.replace(/%%/g, t)));
$(sel, me.dialog).append($(me.uploadTpl.replace(/%fieldName%/, me.editor.getOpt('imageFieldName')).replace(/%%/g, t)));

return me;
},
Expand Down

1 comment on commit c6dae80

@sijinglei
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

多谢!!!

Please sign in to comment.