extjs-gpl
Version:
GPL licensed version of Sencha Ext JS
27 lines (21 loc) • 642 B
JavaScript
Ext.define('Admin.Application', {
extend: 'Ext.app.Application',
name: 'Admin',
stores: [
'NavigationTree'
],
defaultToken : 'dashboard',
// The name of the initial view to create. This class will gain a "viewport" plugin
// if it does not extend Ext.Viewport.
//
mainView: 'Admin.view.main.Main',
onAppUpdate: function () {
Ext.Msg.confirm('Application Update', 'This application has an update, reload?',
function (choice) {
if (choice === 'yes') {
window.location.reload();
}
}
);
}
});