-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication.js
More file actions
31 lines (31 loc) · 780 Bytes
/
application.js
File metadata and controls
31 lines (31 loc) · 780 Bytes
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
IAR.App = Ext.extend(Ext.TabPanel, {
fullscreen: true,
id: "masterpanel",
layoutOnOrientationChange: true,
ui: "charcoalpink",
cardSwitchAnimation: "slide",
initComponent: function() {
this.items = [
new IAR.ui.HomeCard(),
new IAR.ui.BookCard(),
new IAR.ui.AwardCard(),
new IAR.ui.GoalCard(),
new IAR.ui.SettingsCard()
],
this.tabBar = {
dock: "bottom",
layout: {pack:"center"}
},
IAR.App.superclass.initComponent.apply(this,arguments);
Ext.getCmp("goalpanel").checkgoals();
this.doComponentLayout();
this.setBadge();
},
setBadge: function() {
var goals = Ext.StoreMgr.getByKey("goalstore");
goals.filter("hasseen","false");
this.tabBar.items.items[3].setBadge(goals.getCount());
goals.clearFilter();
goals.sort();
}
});