</script>
<script type="text/x-handlebars" data-template-name="artists">
- {{#if controller.arrangedContent}}
- {{#each artist in controller.arrangedContent}}
- {{view Calf.ArtistView contentBinding="artist"}}
- {{/each}}
- {{else}}
- <li>No artists in your library</li>
- {{/if}}
+ <ul class="item-list striped">
+ {{#if controller.arrangedContent}}
+ {{#each artist in controller.arrangedContent}}
+ {{view Calf.ArtistView contentBinding="artist"}}
+ {{/each}}
+ {{else}}
+ <li>No artists in your library</li>
+ {{/if}}
+ </ul>
</script>
<script type="text/x-handlebars" data-template-name="artist">
</script>
<script type="text/x-handlebars" data-template-name="albums">
- {{#if controller.arrangedContent}}
- {{#each album in controller.arrangedContent}}
- {{view Calf.AlbumView contentBinding="album"}}
- {{/each}}
- {{else}}
- <li>No albums found.</li>
- {{/if}}
+ <ul class="item-list striped">
+ {{#if controller.arrangedContent}}
+ {{#each album in controller.arrangedContent}}
+ {{view Calf.AlbumView contentBinding="album"}}
+ {{/each}}
+ {{else}}
+ <li>No albums found.</li>
+ {{/if}}
+ </ul>
</script>
<script type="text/x-handlebars" data-template-name="album">
</script>
<script type="text/x-handlebars" data-template-name="songs">
- {{#if controller.arrangedContent}}
- {{#each song in controller.arrangedContent}}
- <li>{{view Calf.SongView contentBinding="song"}}</li>
- {{/each}}
- {{else}}
- <li>No songs found.</li>
- {{/if}}
+ <ul class="item-list striped">
+ {{#if controller.arrangedContent}}
+ {{#each song in controller.arrangedContent}}
+ <li>{{view Calf.SongView contentBinding="song"}}</li>
+ {{/each}}
+ {{else}}
+ <li>No songs found.</li>
+ {{/if}}
+ </ul>
</script>
<script type="text/x-handlebars" data-template-name="song">
<!-- This file contains other code needed by this example app. -->
<script src="javascripts/calf.js"></script>
</body>
-</html>
\ No newline at end of file
+</html>
var AlbumsView = app.Page.extend({
templateName: 'albums',
- tagName: 'ul',
- classNames: ['item-list', 'striped']
+ tagName: 'div',
+ classNames: ['library', 'scrollable'],
+
+ didInsertElement: function() {
+ this.$().ch_scrollable('enable');
+ }
});
app.AlbumsView = AlbumsView;
-})(window.Calf, window.Ember);
\ No newline at end of file
+})(window.Calf, window.Ember);
var ArtistsView = app.Page.extend({
templateName: 'artists',
- tagName: 'ul',
- classNames: ['item-list', 'striped']
+ tagName: 'div',
+ classNames: ['library', 'scrollable'],
+
+ didInsertElement: function() {
+ this.$().ch_scrollable('enable');
+ }
});
app.ArtistsView = ArtistsView;
-})(window.Calf, window.Ember);
\ No newline at end of file
+})(window.Calf, window.Ember);
var SongsView = app.Page.extend({
templateName: 'songs',
- tagName: 'ul',
- classNames: ['item-list', 'striped']
+ tagName: 'div',
+ classNames: ['library', 'scrollable'],
+
+ didInsertElement: function() {
+ this.$().ch_scrollable('enable');
+ }
});
app.SongsView = SongsView;
-})(window.Calf, window.Ember);
\ No newline at end of file
+})(window.Calf, window.Ember);