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
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

ingo86 - August 25, 2009 - 13:15
Assigned to:Anonymous» ingo86

#2

ingo86 - August 25, 2009 - 13:24

This "intact" is strange...it should theorically be "inact"...
I will check as soon as possible.
BTW thank you.

#3

gregarios - August 25, 2009 - 16:04

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

ingo86 - August 26, 2009 - 19:25
Status:active» fixed

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

System Message - September 9, 2009 - 19:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.