[FIX] web: multiple opened modal need fixing since bootstrap lib update
This commit is contained in:
parent
494ecc620f
commit
12a9e3797d
|
@ -231,6 +231,9 @@ instance.web.Dialog = instance.web.Widget.extend({
|
|||
if (opened_modal.length > 0){
|
||||
//we still have other opened modal so we should focus it
|
||||
opened_modal[opened_modal.length-1].focus();
|
||||
//keep class modal-open (deleted by bootstrap hide fnct) on body
|
||||
//to allow scrolling inside the modal
|
||||
$('body').addClass('modal-open');
|
||||
}
|
||||
},0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue