I have problem with my website. I'm using Bootstrap 3.2 with Bootstrap Dialog instead of modals. When dialog opens, there's a scrollbar but closing it makes scrollbar disappear. I've read lots of topics but I haven't found working solution. Is there any way to solve this?
So, this is my dialog code:
$("a.removeClass").click(function() {
var uid = $(this).attr('id');
BootstrapDialog.show({
message: 'Czy na pewno chcesz usunąć tą klasę?',
title: 'Usuwanie klasy',
buttons: [{
label: 'Usuń klasę',
cssClass: 'btn-danger',
action: function(dialog) {
$(location).attr('href','index.php?app=admin§ion=classes&uid=' + uid + '&remove');
}
}]
});
});
It also doesnt work: How can I prevent body scrollbar and shifting when twitter bootstrap modal dialog is loaded?