1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2025-03-04 10:48:42 +00:00
Radarr/UI/Settings/Notifications/CollectionView.js

22 lines
600 B
JavaScript
Raw Normal View History

2013-05-19 21:19:54 -07:00
'use strict';
2013-06-18 18:02:23 -07:00
define([
'app',
'marionette',
'Settings/Notifications/ItemView',
2013-06-27 18:55:45 -07:00
'Settings/Notifications/SchemaModal'
], function (App, Marionette, NotificationItemView, SchemaModal) {
2013-06-18 18:02:23 -07:00
return Marionette.CompositeView.extend({
itemView : NotificationItemView,
2013-06-25 17:34:33 -07:00
itemViewContainer: '.notifications',
2013-06-18 18:02:23 -07:00
template : 'Settings/Notifications/CollectionTemplate',
2013-05-24 23:38:43 -07:00
events: {
2013-06-25 17:34:33 -07:00
'click .x-add': '_openSchemaModal'
2013-05-25 17:36:12 -07:00
},
2013-05-24 23:38:43 -07:00
2013-06-25 17:34:33 -07:00
_openSchemaModal: function () {
2013-06-27 18:55:45 -07:00
SchemaModal.open(this.collection);
2013-05-24 23:38:43 -07:00
}
2013-05-19 21:19:54 -07:00
});
});