]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | Ext.define('Admin.profile.Phone', {\r |
2 | extend: 'Ext.app.Profile',\r | |
3 | \r | |
4 | requires: [\r | |
5 | 'Admin.view.phone.*'\r | |
6 | ],\r | |
7 | \r | |
8 | // Map phone profile views to generic xtype aliases:\r | |
9 | //\r | |
10 | views: {\r | |
11 | email: 'Admin.view.phone.email.Email',\r | |
12 | inbox: 'Admin.view.phone.email.Inbox',\r | |
13 | compose: 'Admin.view.phone.email.Compose',\r | |
14 | \r | |
15 | searchusers: 'Admin.view.phone.search.Users'\r | |
16 | },\r | |
17 | \r | |
18 | isActive: function () {\r | |
19 | return Ext.platformTags.phone;\r | |
20 | },\r | |
21 | \r | |
22 | launch: function () {\r | |
23 | // Add a class to the body el to identify the phone profile so we can\r | |
24 | // override CSS styles easily. The framework adds x-phone so we could\r | |
25 | // use it but this way the app controls a class that is always present\r | |
26 | // when this profile isActive, regardless of the actual device type.\r | |
27 | Ext.getBody().addCls('phone');\r | |
28 | }\r | |
29 | });\r |