Report abuse

1
2
3
4
5
// init the dialog container
$("#dialog").dialog({autoOpen: false, bgiframe: true, position: "center"});
var height = $("#dialog").parent().height();
if (height > $(window).height()) {height = $(window).height() / 1.2};
$("#dialog").data("height.dialog", height).dialog("open");