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