Closed (fixed)
Project:
Equal Heights jQuery
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Nov 2011 at 02:07 UTC
Updated:
19 May 2012 at 15:25 UTC
Chrome keeps giving me "Invalid Token" errors. It seems the \n is being kept in the class name. This fixes it:
--- equalheights.module 2011-11-05 22:02:56.300339915 -0400
+++ /etc/drupal6/all/modules/equalheights/equalheights.module 2011-11-05 21:10:25.995263146 -0400
@@ -37,6 +37,7 @@
drupal_add_js($jqueryequalheightsjs, 'module');
$js = "\$(document).ready(function(){";
foreach ($classes as $class) {
+ $class=trim($class);
if (!empty($class)) {
// Check if there's a ":" inside the setting string to avoid notices
if (strpos($class, ':') !== false ) {
Comments
Comment #1
drurian commentedShould be fixed in dev.
Comment #2
drurian commented