Permalink
Browse files

Rename tracks_store to music_store.

  • Loading branch information...
1 parent e51b863 commit 0fa8a4f539852d49688544a54cb1f00aca9f012b @nelstrom committed Feb 27, 2011
Showing with 4 additions and 3 deletions.
  1. +1 −1 public/app/stores/{tracks_store.js → music_store.js}
  2. +2 −1 public/app/views/Viewport.js
  3. +1 −1 views/index.erb
@@ -1,4 +1,4 @@
-NestedListDemo.tracks_store = new Ext.data.TreeStore({
+NestedListDemo.music_store = new Ext.data.TreeStore({
model: 'ListItem',
proxy: {
type: 'ajax',
@@ -3,7 +3,8 @@ NestedListDemo.views.Viewport = Ext.extend(Ext.NestedList, {
Ext.apply(this, {
fullscreen: true,
title: 'Music',
- store: NestedListDemo.tracks_store,
+ displayField: 'text',
+ store: NestedListDemo.music_store,
});
NestedListDemo.views.Viewport.superclass.initComponent.apply(this, arguments);
}
View
@@ -9,7 +9,7 @@
<!-- app, models, stores, views, controllers -->
<script src="app/app.js" type="text/javascript"></script>
<script src="app/models/list_item.js" type="text/javascript"></script>
- <script src="app/stores/tracks_store.js" type="text/javascript"></script>
+ <script src="app/stores/music_store.js" type="text/javascript"></script>
<script src="app/views/Viewport.js" type="text/javascript"></script>
</head>

0 comments on commit 0fa8a4f

Please sign in to comment.