/** * Project  : AMDA-NG * Name : UploadUI.js * @class amdaUI.UploadUI * @extends Ext.container.Container * @brief Upload Module UI definition (View) * @author Elena * @version $Id: UploadUI.js 2831 2015-03-26 10:33:42Z elena $ */ Ext.define('amdaUI.UploadUI', { extend: 'Ext.container.Container', alias: 'widget.panelTabUpload', requires: [ 'amdaUI.UploadPanelUI' ], constructor: function(config) { this.init(config); this.callParent(arguments); }, init : function(config) { var myConf = { layout: 'border', items: [ { xtype: 'tabpanel', region: 'center', activeTab : 0, items : [ { xtype: 'panelUpload', panelType : 'file', title : 'File', localUploadName : 'localFileName', remoteUploadName : 'remoteFile'}, { xtype: 'panelUpload', panelType : 'timetable', title : 'Time Table', localUploadName : 'localTTName', remoteUploadName : 'remoteTT'}, { xtype: 'panelUpload', panelType : 'catalog', title : 'Catalog', localUploadName : 'localCatName', remoteUploadName :'remoteCat'}] }, { xtype: 'panel', region: 'south', title: 'Information', collapsible: true, collapseMode: 'header', height: 100, autoHide: false, iconCls: 'icon-information', html: 'Select local or remote file (time table, catalog) to upload
File size is limited to ' + myDesktopApp.MAX_UPLOADED_FILE_SIZE/1000000+'MB
Milliseconds are ignored for the moment', autoScroll : true, loader: {} }] }; Ext.apply (this, Ext.apply(arguments, myConf)); }, forceUpload : function(url,format,onFinish) { //this.setDisabled(true); this.items.items[0].items.items[0].forceUpload(url,format,onFinish); //this.setDisabled(false); } });