FileField.js 689 Bytes
Ext.define('treps.view.Steps.SourceSelection.FileField' ,{
	extend: 'Ext.form.field.File',
    
	alias: 'widget.filefield',
	
	initComponent: function() {
		this.callParent(arguments);
	},

	name: 'sourcefile',

	fieldLabel: 'Source File',

	labelAlign: 'top',

	padding: 5,

	buttonConfig: {
		scale: 'large'
	},

	msgTarget: 'side',

	allowBlank: false,

	buttonText: 'Select File',

	listeners:
	{
		afterrender: function()
		{
			var helpzone = this.getEl().down(".x-form-item-label");
			
			Ext.create('Ext.panel.Tool',
				{
					type: 'help',
					cls:'treps-tool-help',
					renderTo: helpzone,
					pageId: 'formats'
				});
		}
	}
});