blob: f58863ba315c9f35124eeee2d0c7e60b36aa1f12 (
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
|
define([
'./form-view'
], function (FormView) {
return FormView.extend({
method: 'create',
prepareRequest: function () {
var that = this;
var url = baseUrl + '/api/qualitygates/create',
name = this.$('#quality-gate-form-name').val(),
options = {
url: url,
data: { name: name }
};
return this.sendRequest(options)
.done(function (r) {
var gate = that.addGate(r);
gate.trigger('select', gate);
});
}
});
});
|