|
|
@@ -7,7 +7,8 @@ Ext.define('school.view.core.form.field.TrashField', {
|
|
|
alias : 'widget.trashfield',
|
|
|
style:'margin:5px 0 0 0',
|
|
|
fieldStyle: 'background:#C6E2FF;color:#D9D9D9;',
|
|
|
- autoShow: true,
|
|
|
+ autoShow: true,
|
|
|
+ maxLength: 200,
|
|
|
initComponent : function() {
|
|
|
this.callParent(arguments);
|
|
|
},
|
|
|
@@ -92,7 +93,8 @@ Ext.define('school.view.core.form.field.TrashField', {
|
|
|
download : function() {
|
|
|
var me = this;
|
|
|
var serverOptions = Ext.manifest.server;
|
|
|
- window.location.href = (serverOptions.basePath.https?serverOptions.basePath.https:serverOptions.basePath) + '/api/file/download?path='+me.filepath;
|
|
|
+ var rul = (serverOptions.basePath.https?serverOptions.basePath.https:serverOptions.basePath) + '/api/file/download?path='+me.filepath;
|
|
|
+ window.open(rul);
|
|
|
},
|
|
|
showAttach : function() {
|
|
|
var me = this,src = basePath + 'common/download.action?path=' + me.realpath.replace(/\+/g, '%2B')+"&size="+me.filesize+"&fileName="+me.fileName;
|