-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
43 lines (40 loc) · 1.28 KB
/
app.js
File metadata and controls
43 lines (40 loc) · 1.28 KB
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
// Generated by CoffeeScript 1.4.0
(function() {
Ext.Loader.setPath({
Ext: "touch/src",
StoreSample: "app"
});
Ext.application({
name: "StoreSample",
requires: ["Ext.MessageBox"],
views: ["Main", "SampleList"],
stores: ["Samples"],
models: ["Parent", "Child"],
icon: {
57: "resources/icons/Icon.png",
72: "resources/icons/Icon~ipad.png",
114: "resources/icons/Icon@2x.png",
144: "resources/icons/Icon~ipad@2x.png"
},
isIconPrecomposed: true,
startupImage: {
"320x460": "resources/startup/320x460.jpg",
"640x920": "resources/startup/640x920.png",
"768x1004": "resources/startup/768x1004.png",
"748x1024": "resources/startup/748x1024.png",
"1536x2008": "resources/startup/1536x2008.png",
"1496x2048": "resources/startup/1496x2048.png"
},
launch: function() {
Ext.fly("appLoadingIndicator").destroy();
return Ext.Viewport.add(Ext.create("StoreSample.view.Main"));
},
onUpdated: function() {
return Ext.Msg.confirm("Application Update", "This application has just successfully been updated to the latest version. Reload now?", function(buttonId) {
if (buttonId === "yes") {
return window.location.reload();
}
});
}
});
}).call(this);