blob: e4a118f2822ed82d0a6e7745f5f3cbcc1a2f20af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import Marionette from 'backbone.marionette';
import CreateView from './create-view';
import Template from './templates/groups-header.hbs';
export default Marionette.ItemView.extend({
template: Template,
events: {
'click #groups-create': 'onCreateClick'
},
onCreateClick: function (e) {
e.preventDefault();
this.createGroup();
},
createGroup: function () {
new CreateView({
collection: this.collection
}).render();
}
});
|