</div>
</div>
- <div class="content">
+ <div class="page content">
{{outlet library}}
</div>
</script>
<script type="text/x-handlebars" data-template-name="mediaItems">
- {{#each item in controller}}
- <li>{{item.title}}</li>
- {{/each}}
+ <ul class="item-list striped">
+ {{#each item in controller}}
+ <li>{{item.title}}</li>
+ {{/each}}
+ </ul>
</script>
<!-- the UI framework -->
(function(app, Ember) {
var MediaItemsView = Ember.View.extend({
templateName: 'mediaItems',
- tagName: 'ul',
- classNames: ['mediaItems item-list striped']
+ classNames: ['mediaItems ch-simple-scrollable'],
+
+ didInsertElement: function() {
+ this.$().ch_simple_scrollable('enable');
+ }
});
app.MediaItemsView = MediaItemsView;