hi,
Thanks for this plugin. It works great after a minor change. I think there's a bug although I'm not sure if it's intentional or not.
In jqueryeasy.php line 207 you have
Code:
$body = preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n\']+/", "\n", $body);
while the original regex (I found it here
programming-oneliners.blogspot.com/2006/...ty-lines-php-29.html
) is
Code:
preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", "\n", $string);
That extra quote that you're replacing is causing code in Joomlart templates to break, because this
Code:
var megamenu = new jaMegaMenuMoo ('ja-megamenu', {
'bgopacity': 0,
'delayHide': 300,
'slide' : 0,
'fading' : 0,
'direction': 'down',
'action' : 'mouseover',
'tips' : false,
'duration' : 300,
'hidestyle': 'fastwhenshow'
});
is replaced with this
Code:
var megamenu = new jaMegaMenuMoo ('ja-megamenu', {
bgopacity': 0,
delayHide': 300,
slide' : 0,
fading' : 0,
direction': 'down',
action' : 'mouseover',
tips' : false,
duration' : 300,
hidestyle': 'fastwhenshow'
});
Removing the quote or commenting out the line entirely fixed it for me.