UNPKG

ucan-ext-js-kitchen-sink

Version:

my-ext-gen-app description for Ext JS app MyExtGenApp

29 lines (25 loc) 635 B
Ext.define('UCANSink.Application', { extend: 'Ext.app.Application', name: 'UCANSink', requires: ['UCANSink.*'], defaultToken: 'homeview', removeSplash: function () { Ext.getBody().removeCls('launching') var elem = document.getElementById("splash") elem.parentNode.removeChild(elem) }, launch: function () { this.removeSplash() var whichView = 'mainview' Ext.Viewport.add([{xtype: whichView}]) }, onAppUpdate: function () { Ext.Msg.confirm('Application Update', 'This application has an update, reload?', function (choice) { if (choice === 'yes') { window.location.reload(); } } ); } });