forked from avantsoft/meetcha
-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.js
executable file
·62 lines (53 loc) · 1.45 KB
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//<debug>
Ext.Loader.setPath({
'Ext': 'sdk/src',
'Meetcha.util': 'app/classes'
});
Ext.Logger = Ext.create('Ext.log.Logger');
//</debug>
Ext.application({
name: 'Meetcha',
tabletStartupScreen: 'resources/images/meetcha_tablet_startup.png',
phoneStartupScreen: 'resources/images/meetcha_phone_startup.png',
icon : 'resources/images/meecha_icon.png',
glossOnIcon: false,
controllers: [
'User',
'Map',
'CommonInteractions' ,
'GroupList',
'MeetupList',
'Find',
'HomeScreen',
'MeetchaTitleBar',
'Geolocation',
'AtMeetup'
],
views: [
'HomeScreen',
'MeetchaTitleBar'
],
requires: ['Meetcha.util.Format', 'Ext.MessageBox', 'Ext.data.proxy.LocalStorage'],
viewport: {
autoMaximize: true
},
launch: function(){
// Destroy the #appLoadingIndicator element
Ext.fly('appLoadingIndicator').destroy();
Ext.Viewport.on('orientationchange', function() {
// console.log('Orientation Change: ' + Ext.Viewport.getOrientation());
}, this);
},
onUpdated: function() {
Ext.Msg.confirm(
"Application Update",
"This application has just successfully been updated to the latest version. Reload now?",
function() {
window.location.reload();
}
);
}
});
//window.onerror = function(error){
// debugger;
//};