Beta5 Kills all Javascript on site
gregarios - August 24, 2009 - 19:37
| Project: | Vote Up/Down |
| Version: | 6.x-1.0-beta5 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | ingo86 |
| Status: | closed |
Jump to:
Description
I get this after upgrading to beta5.
Error in javascript: missing name after . operator near "-intact" —
if (!$('#' + 'vote_' + db.dir2 + '_' + cid).hasClass(db.dir2.'-intact')) {
This error completely breaks all the Javascript on the pages where vote Up/Down is loaded — menus, views slideshow, and Lightbox2.
Tried clearing the caches, updating the database (no updates), and finally reverted back to beta4 to fix it.

#1
#2
This "intact" is strange...it should theorically be "inact"...
I will check as soon as possible.
BTW thank you.
#3
It may in fact be "-inact" as I had to type it out from a screenshot. I believe the error message had an arrow pointing at the hyphen in "-inact" as well. Perhaps it needs escaping?
#4
The point operator works in php as chain, in javascript we need to use the + operator to chain variables.
Sorry for the distraction error.
Download beta6, it's fixed.
#5
Automatically closed -- issue fixed for 2 weeks with no activity.