[Rails] Re: Asset pipeline and jQuery scope
buyzlots wrote in post #1108466:
> good to hear! Curious what was the issue?
>
> Matt
if $('#alreadyAnswered').length > 0
$('#big_image').hide()
$('#big_image_div').hide()
$('#little_image').click ->
$('#little_image').hide()
$('#little_image_div').hide()
$('#big_image_div').show()
$('#big_image').fadeIn('medium')
$('#big_image').click ->
$('#big_image').hide()
$('#big_image_div').hide()
$('#little_image_div').show()
$('#little_image').fadeIn('medium')
Not sure why the other did not work, but this did the trick.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home