djax icon indicating copy to clipboard operation
djax copied to clipboard

Exceptions do not work

Open Nywuob opened this issue 12 years ago • 4 comments

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?

Nywuob avatar Nov 16 '12 16:11 Nywuob

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.

beezee avatar Nov 16 '12 19:11 beezee

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 avatar Nov 16 '12 20:11 Nywuob

Any updates on this issue?

Nywuob avatar Dec 05 '12 16:12 Nywuob

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

beezee avatar Feb 10 '13 18:02 beezee