]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | Ext.application({\r |
2 | name: 'StockApp',\r | |
3 | \r | |
4 | requires: [\r | |
5 | 'Ext.MessageBox'\r | |
6 | ],\r | |
7 | \r | |
8 | stores: [\r | |
9 | 'Apple',\r | |
10 | 'Google'\r | |
11 | ],\r | |
12 | \r | |
13 | mainView:'StockApp.view.Main',\r | |
14 | \r | |
15 | onUpdated: function () {\r | |
16 | Ext.Msg.confirm(\r | |
17 | "Application Update",\r | |
18 | "This application has just successfully been updated to the latest version. Reload now?",\r | |
19 | function (buttonId) {\r | |
20 | if (buttonId === 'yes') {\r | |
21 | window.location.reload();\r | |
22 | }\r | |
23 | }\r | |
24 | );\r | |
25 | }\r | |
26 | });\r |