Unblocking after modal dialog is closed

Unblocking after modal dialog is closed


Problem:
After closing a modal dialog other actions bound to click remain
blocked.
jQuery UI 1.5b2, Firefox 2.0.0.14
Example:
1. Below is the HTML page containing jquery code
2. Click "Open modal dialog" link => dialog opens
3. Close dialog from "X" in top right corner => dialog disappears
4. Click "Other link with click event bound"
=> Problem: should display alert box but nothing happens
What am I doing wrong?
<script type="text/javascript" src="./js/jquery-latest.js"></script>
<script type="text/javascript" src="./js/jquery.dimensions.js"></
script>
<script type="text/javascript" src="./js/ui.base.js"></script>
<script type="text/javascript" src="./js/ui.draggable.js"></script>
<script type="text/javascript" src="./js/ui.resizable.js"></script>
<script type="text/javascript" src="./js/ui.dialog.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#openLink").click(function() {
$('#example1').dialog({
modal: true,
autoOpen: false });
$('#example1').dialog("open");
return false;
});
$("#reopenLink").click(function() {
$('#example1').dialog("open");
return false;
});
$("#otherLink").click(function() {
alert("Gabba gabba");
return false;
});
});
</script>
</head>
<body>
<div id="example1">Hello, World!</div>
<br />
<a href="#" id="openLink">Open modal dialog</a><br/>
<a href="#" id="reopenLink">Re-open modal dialog</a><br/>
<a href="#" id="otherLink">Other link with click event bound</a>
</body>