Manually handle hiding of bootstrap Modals in search
Closes #13330 (grafted from f295f3d8b14264e592a86cc505d04ffd1b21bcc6) --HG-- branch : 7.0
This commit is contained in:
1 parent
a282fd81cd
commit
10f9708fe0
1 file changed
+7
-1
+7
-1
@@ -886,8 +886,14 @@
|
||||
this.title = title;
|
||||
this.exclude_field = kwargs.exclude_field || null;
|
||||
var dialog = new Sao.Dialog(Sao.i18n.gettext(
|
||||
'Search %1', this.title), '', 'lg');
|
||||
'Search %1', this.title), '', 'lg', false);
|
||||
this.el = dialog.modal;
|
||||
this.el.on('keydown', e => {
|
||||
if (e.which == Sao.common.ESC_KEYCODE) {
|
||||
e.preventDefault();
|
||||
this.response('RESPONSE_CANCEL');
|
||||
}
|
||||
});
|
||||
|
||||
jQuery('<button/>', {
|
||||
'class': 'btn btn-link',
|
||||
|
||||
Reference in new issue
Block a user