blob: 156c7d88104005699e760de787f5d6f2063907e1 (
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
27
|
define([
'./create-view',
'./templates'
], function (CreateView) {
return Marionette.ItemView.extend({
template: Templates['quality-gate-actions'],
events: {
'click #quality-gate-add': 'add'
},
add: function (e) {
e.preventDefault();
new CreateView({
collection: this.collection
}).render();
},
serializeData: function () {
return _.extend(Marionette.ItemView.prototype.serializeData.apply(this, arguments), {
canEdit: this.options.canEdit
});
}
});
});
|