blob: bb0fc0bcef545de853ed4ef8bc962fe8d1f589e6 (
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([
'components/common/modal-form',
'./templates'
], function (ModalForm) {
return ModalForm.extend({
template: Templates['provisioning-form'],
onRender: function () {
this._super();
this.$('[data-toggle="tooltip"]').tooltip({ container: 'body', placement: 'bottom' });
},
onDestroy: function () {
this._super();
this.$('[data-toggle="tooltip"]').tooltip('destroy');
},
onFormSubmit: function (e) {
this._super(e);
this.sendRequest();
}
});
});
|