Closed (fixed)
Project:
Equal Heights jQuery
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2012 at 09:43 UTC
Updated:
15 May 2012 at 18:35 UTC
I recognized that the module doesn't work if you configure more than one class, separated by a new line as the description says.
I make it working changing the line 35 with:
$classes = explode("\n", $equalheightsclasses);
Comments
Comment #1
jdanthinne commentedHad to remove \r char as well to make it work.
$classes = explode("\n", str_replace("\r", '', $equalheightsclasses));Comment #2
drurian commentedFix is in the latest dev.
Comment #3
jdanthinne commentedTested with latest dev, and still doesn't work… Fix hasn't been applied.
Comment #4
drurian commentedDid you clear the cache? I've tested with 1.1 and it works.
Comment #5
jdanthinne commentedYes, cleared the cache, but still doesn't work…
The generated source code is :
As you can see, the \r is not cleared, so the javascript is divided in multiple lines, and throws errors.
Comment #6
drurian commentedWhat platform are you using to edit the site? Currently '\r' is not taken into account, but I'm going to fix it.
Comment #7
jdanthinne commentedMac OS X
Comment #8
mecmartini commentedFor me now it works. I'm using OSX too.
Maybe are you using a WYSIWYG editor on the config textarea?
Comment #9
drurian commentedYeah, it's better to exclude the textarea from WYSIWYG
Comment #10
drurian commentedI've replaced '\n' with '\R' which should match any Unicode new line, see commit. Can someone on a Mac check if it works?
Comment #11
mecmartini commentedTested on a Mac and it works!
Anyway the previous changes was working as well for me, so I guess on my platform I'm not able to reproduce the case with a '\r'.
Comment #12
jdanthinne commentedGreat! Working now on Mac!
Comment #13
drurian commented