blob: adf99c5e38447caa47dfc81ed4af70c3cd95a4ab (
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
|
import Marionette from 'backbone.marionette';
import CreateView from './create-view';
import Template from './templates/custom-measures-header.hbs';
export default Marionette.ItemView.extend({
template: Template,
events: {
'click #custom-measures-create': 'onCreateClick'
},
onCreateClick: function (e) {
e.preventDefault();
this.createCustomMeasure();
},
createCustomMeasure: function () {
new CreateView({
collection: this.collection,
projectId: this.options.projectId
}).render();
}
});
|