Skip to content

Commit

Permalink
Removed all & top lists
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgpearce committed Mar 24, 2011
1 parent 45d34ea commit 2cc467f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 35 deletions.
63 changes: 31 additions & 32 deletions app/views/ShotsLists.js
Expand Up @@ -55,7 +55,6 @@ roookies.views.ShotsInnerList = Ext.extend(Ext.List, {
metadisclose: function (event, element) {
var detailType = element.className;
var record = this.getRecord(Ext.get(element).parent('.shot-meta').prev('.x-list-item', true));
console.log(detailType);
Ext.dispatch({
controller: roookies.controllers.shots,
action: 'show',
Expand All @@ -77,7 +76,7 @@ roookies.views.ShotsInnerList = Ext.extend(Ext.List, {
});


roookies.views.ShotsLists = Ext.extend(Ext.TabPanel, {
roookies.views.ShotsLists = Ext.extend(Ext.Panel, {
layout: 'fit',
dockedItems: [{
xtype: 'toolbar',
Expand All @@ -104,35 +103,35 @@ roookies.views.ShotsLists = Ext.extend(Ext.TabPanel, {
}),
iconCls: 'user'
}),
new roookies.views.ShotsInnerList({
store: new Ext.data.Store({
model: 'roookies.models.Shot',
autoLoad: true,
proxy: {
type: 'scripttag',
url: 'http://api.dribbble.com/shots/popular',
reader: {
type: 'json',
root: 'shots'
}
}
}),
iconCls: 'favorites'
}),
new roookies.views.ShotsInnerList({
store: new Ext.data.Store({
model: 'roookies.models.Shot',
autoLoad: true,
proxy: {
type: 'scripttag',
url: 'http://api.dribbble.com/shots/everyone',
reader: {
type: 'json',
root: 'shots'
}
}
}),
iconCls: 'team'
}),
//new roookies.views.ShotsInnerList({
// store: new Ext.data.Store({
// model: 'roookies.models.Shot',
// autoLoad: true,
// proxy: {
// type: 'scripttag',
// url: 'http://api.dribbble.com/shots/popular',
// reader: {
// type: 'json',
// root: 'shots'
// }
// }
// }),
// iconCls: 'favorites'
//}),
//new roookies.views.ShotsInnerList({
// store: new Ext.data.Store({
// model: 'roookies.models.Shot',
// autoLoad: true,
// proxy: {
// type: 'scripttag',
// url: 'http://api.dribbble.com/shots/everyone',
// reader: {
// type: 'json',
// root: 'shots'
// }
// }
// }),
// iconCls: 'team'
//}),
]
});
8 changes: 5 additions & 3 deletions index.html
Expand Up @@ -3,12 +3,14 @@
<head>
<title>Roookies</title>

<link href='http://fonts.googleapis.com/css?family=Pacifico' rel='stylesheet' type='text/css'>

<script src="lib/touch/sencha-touch.js" type="text/javascript"></script>
<link href="lib/touch/resources/css/sencha-touch.css" rel="stylesheet" type="text/css" />
<!--<link href="theming/roookies.css" rel="stylesheet" type="text/css" />-->

<!-- Uncomment the lines below and comment the sencha-touch.css link above to see the sample custom theme -->
<!--
<link href='http://fonts.googleapis.com/css?family=Pacifico' rel='stylesheet' type='text/css' />
<link href="theming/roookies.css" rel="stylesheet" type="text/css" />
-->

<script type="text/javascript" src="app/app.js"></script>

Expand Down

0 comments on commit 2cc467f

Please sign in to comment.