I've implemented expose and overlay together and it looks like there's an issue with closeOnClick. When I don't implement the expose piece of the code, the closeOnClick works fine but when implemented together the functionality does not work as planned.
Any help would be great. Thanks!
Here's my code:
Any help would be great. Thanks!
Here's my code:
jQuery(document).ready(function($) {
$("a[rel]").each(function(i) {
$(this).overlay({
expose: '#AAAAAA',
oneInstance: false,
closeOnClick: false,
onLoad: function() {
var wrap = this.getContent().find("div.wrap");
if (wrap.is(":empty")) {
wrap.load(this.getTrigger().attr("href"));
}
}
});
});
});
