Hello, I have a Dialog box to all a user to click a project, that opens on click.... Here's the code:
$("#byproject").live("click", function() {
$("#projectPicker").fadeIn();
return false;
});
// Close the space dialog on selection
$(".projectSelect").live("click", function() {
$("#projectPicker").fadeOut('fast');
});
This works very well to open the dialog box that is being position:absolute, next to the "select projects" button...
Problem here is that if the user clicks outside the box (ie they change their mind) the box doesn't close...
Is there some smart way I can say, when this thing is open, if the user clicks anywhere outside of the dialog box, close it?
Thanks