]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | /**\r |
2 | * The main application class. An instance of this class is created by app.js when it calls\r | |
3 | * Ext.application(). This is the ideal place to handle application launch and initialization\r | |
4 | * details.\r | |
5 | */\r | |
6 | Ext.define('ExecDashboard.Application', {\r | |
7 | extend: 'Ext.app.Application',\r | |
8 | \r | |
9 | name: 'ExecDashboard',\r | |
10 | \r | |
11 | // The tab we want to activate if there is no "#tag" in the URL.\r | |
12 | defaultToken: '!kpi/clicks',\r | |
13 | \r | |
14 | views: [\r | |
15 | 'ExecDashboard.view.main.Main'\r | |
16 | ],\r | |
17 | \r | |
18 | launch: function () {\r | |
19 | // Let's add a CSS class to body if flex box wrap is not implemented or broken\r | |
20 | // http://flexboxlayouts.com/flexboxlayout_tricks.html\r | |
21 | if (Ext.browser.is.Gecko && Ext.browser.version.major < 28) {\r | |
22 | Ext.getBody().addCls('x-flex-wrap-broken');\r | |
23 | }\r | |
24 | }\r | |
25 | });\r |