Carded notifications

This commit is contained in:
Mark McDowall 2013-06-25 17:34:33 -07:00
parent 3d2a47627f
commit 195f9d9d27
12 changed files with 147 additions and 44 deletions

View file

@ -8,14 +8,14 @@ define([
], function (App, Marionette, NotificationCollection, NotificationItemView, AddSelectionNotificationView) {
return Marionette.CompositeView.extend({
itemView : NotificationItemView,
itemViewContainer: 'tbody',
itemViewContainer: '.notifications',
template : 'Settings/Notifications/CollectionTemplate',
events: {
'click .x-add': 'openSchemaModal'
'click .x-add': '_openSchemaModal'
},
openSchemaModal: function () {
_openSchemaModal: function () {
var schemaCollection = new NotificationCollection();
schemaCollection.url = '/api/notification/schema';
schemaCollection.fetch();