Is there a default option to close a jQuery dialog by clicking somewhere on the screen instead of the close icon?
Try this:
$(".ui-widget-overlay").click(function () { $(".ui-icon.ui-icon-closethick").trigger("click"); });