[FIX] web: multiple opened modal need fixing since bootstrap lib update

This commit is contained in:
Cedric Snauwaert 2014-08-01 14:53:48 +02:00
parent 494ecc620f
commit 12a9e3797d
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}