pixedelic / Camera

http://www.pixedelic.com/plugins/camera/
494 stars 309 forks source link

Console errSyntax error, unrecognized expression: [href*=/..] #11

Open gnrocks opened 12 years ago

gnrocks commented 12 years ago

Hello ! First of all, thank you very much for this wonderful plugin ! It is exactly what i had been looking for such a long time !

I have an ajaxed page that is based on haschange. I use the delegate method on click like this :

$(document).delegate("a[href^='"+siteUrl+"']:not([href*=/wp-admin/]):not([href*=/wp-login.php]):not([href$=/feed/])", "click", function() {

The problem is when i click on a thumbnail or navigation arrows on the slider, the console gives me the following error :

Uncaught Error: Syntax error, unrecognized expression: [href*=/wp-admin/]    in jquery-1.7.1.min.js:18

The animations continue to run but i am afraid that it breaks other parts of my code. Do you have an idea about the origin of the issue ? And how to eventually fix it ?

Also, is it possible to disable easing, and replace it with another animation method ? Maybe CSS like animate.css (http://daneden.me/animate/)

Best regards !

gnrocks commented 12 years ago

Nevermind ! Adding quotes '' to wrap the /wp-admin/ fixed the issues !

I was wondering if it was possible to autostart the video in the slideshow ?