$( ".selector" ).dialog({
...,

open: function( event, ui ) {
$('html, body').css(overflow,'hidden');
},
close: function( event, ui ) {
$('html, body').css(overflow,'auto');
}

});

ciao