beezee / djax

Dynamic pjax, responds to layout changes across requested pages
http://beezee.github.com/djax.html
171 stars 27 forks source link

Exceptions do not work #16

Open Nywuob opened 11 years ago

Nywuob commented 11 years ago

I want to exclude some links to images that should be opened with Fancybox, but they still get the "dJax_internal" class.

This is the code i'm using:

jQuery(document).ready(function($) {
    $('body').djax('.updatable', ['assets']);
});

Example image link:

a href="assets/templates/wwaw/images/1_b.jpg" class="fancybox" data-fancybox-group="gallery" title="Lorem ipsum dolor sit amet">

Is this a bug or am I doing something wrong?

beezee commented 11 years ago

Is this the case in all browsers? I personally haven't had trouble with this, but I'm using Javascripts indexOf method, might not have full coverage. Lemme know if there's a browser specific issue and I'll switch the method for detecting exceptions if need be.

Nywuob commented 11 years ago

Yes, it happens in the latest versions of Chrome, Firefox and Opera. I don't know about safari, but I reckon it's the same.

Thanks for your quick response btw.

Nywuob commented 11 years ago

Any updates on this issue?

beezee commented 11 years ago

Unfortunately I've not been able to reproduce- if you can host a simple demonstration of the issue I'll be happy to dig into the source