Jump to content

[jquery] weird behaviour in manufacturer.tpl


alsitn

Recommended Posts

Hi,

 

I've found this weird jquery behavior in manufacturer.tpl on any 1.5.6 fresh install.

On row 37 (github link) before the <else> of the <if> statement there's

<a href="#" class="lnk_more" onclick="$(this).prev().slideDown('slow'); $(this).hide(); return false;">{l s='More'}</a>

This does nothing aside hiding .lnk_more.

 

I've fiddled with it and I've changed the jquery code a bit to

$('.description_box').append('{$manufacturer->description}'); $('.lnk_more').hide(); $('.hide_desc').empty();

It works... partially

It shows the description BUT it won't empty(), hide(), remove() '.hide_desc'. While still hiding '.lnk_more'. This is driving me nuts.

What's wrong with my code? Please help!

 

P.S. {literal}{/literal} is not needed since Smarty v3 so that's not the issue ;)

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...