Hi-
rate.js was throwing an error for me on a node displayed in a panel template override:
Fix for me was to remove the line:
var ids = widget.attr('id').match(/^rate\-([a-z]+)\-([0-9]+)\-([0-9]+)\-([0-9])$/);
from which the variable ids does not appear to be used.

Appears to be a harmless and simple fix. Advice?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

texas-bronius’s picture

Title: rate.js throws error (when in a Pane?) » rate.js throws error "Uncaught TypeError: Cannot call method 'match' of undefined" (when in a Pane?)
Status: Active » Needs review
FileSize
495 bytes

Patch attached to fix this javascript error.

berliner’s picture

Status: Needs review » Reviewed & tested by the community

Works for me.

SocialNicheGuru’s picture

mauritsl’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Closed (fixed)

This is not an issue anymore I guess. The following issues made this one superfluous:
#1295240: Integrate with Panels UI
#1676746: Addtional Classes and more unique ID

nonsimilar’s picture

Status: Closed (fixed) » Needs review

Unfortunately no, the issue is still present in the last build of 7.x-2.x-dev.
The patch #1 works, but it may be conflicting with the code in the 7.x-1.x branch. I've applied it anyway as it was breaking the voting.