Closed (fixed)
Project:
Panels
Version:
6.x-3.9
Component:
Panel pages
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 Jun 2011 at 18:27 UTC
Updated:
12 Nov 2011 at 16:30 UTC
I'm just getting started with jQuery and I wrote a little block that uses the accordion. When I display the block in a sidebar, the accordion works just fine, but when I add the block to a panel page the javacript doesn't work.
I tried changing the style of the block to be a system block but that didn't work. The only difference I noticed between the two is that when I click on the accordion when its on the panel page, it appends an '#" to the url, which the one in the sidebar that works correctly doesn't.
Any thoughts on how to fix?
Comments
Comment #1
kevstav13 commentedHere's the code that defines the block:
And this is the javascript:
Any idea why this would work in a standard drupal region but not in a panel?
Comment #2
delta commentedsee this issue, it's maybe because of the block's caching... http://drupal.org/node/651500
where are you adding the js and do you use drupal_add_js() ?
Comment #3
Letharion commentedAnswered, and then no activity from OP.