This is a message.

Forum user: josh

Basic information

Registered Jun 10, 2009
Last login Jun 19, 2009
Forum posts 2
Direct URL http://www.flowplayer.org/forum/users/11667

Latest forum posts

Posts:

Registered:

I figured out the issue

Posted: Jun 11, 2009

For those who might have been wondering here's the resolution to the above issue:

  

jQuery(document).ready(function($) {

$("a[rel]").each(function(i) {
	$(this).overlay({

		expose: {
		color: '#AAAAAA',
		closeOnClick: false
		},
		
		closeOnClick: false,

		onLoad: function() {
			var wrap = this.getContent().find("div.wrap");
			if (wrap.is(":empty")) {
				wrap.load(this.getTrigger().attr("href"));
			}
		}

	});
  });
});

Posts:

Registered:

Expose and Overlay issue with closeOnClick

Posted: Jun 10, 2009

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:

  
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"));
			}
		}

	});
  });
});