/** * The main application class. An instance of this class is created by app.js when it * calls Ext.application(). This is the ideal place to handle application launch and * initialization details. */ Ext.define('uas.Application', { extend: 'Ext.app.Application', name: 'uas', controllers: [ 'Global', ], defaultToken: '', init: function() { Ext.tip.QuickTipManager.init(null, { showOnTap: true }); if (!Ext.platformTags.test) { Ext.state.Manager.setProvider(Ext.create('Ext.state.CookieProvider')); } }, launch: function () { var view = 'uas.view.main.Main'; this.setMainView({ xclass: view }); }, onAppUpdate: function () { Ext.Msg.confirm('Application Update', 'This application has an update, reload?', function (choice) { if (choice === 'yes') { window.location.reload(); } } ); } });