blob: a07bd44e6e0519931358a36baad05695c9b602b8 (
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
25
26
|
define([
'backbone.marionette',
'./create-view',
'./templates'
], function (Marionette, CreateView) {
return Marionette.ItemView.extend({
template: Templates['users-header'],
events: {
'click #users-create': 'onCreateClick'
},
onCreateClick: function (e) {
e.preventDefault();
this.createUser();
},
createUser: function () {
new CreateView({
collection: this.collection
}).render();
}
});
});
|