Hi there

I have a simple javascript include in a panel "custom content" pane which calls a third-party video widget. When Panels IPE is active (even if I am not editing, but merely viewing a live page), there are TWO video widgets outputting instead of just one. I double-checked my code to ensure that I am only calling it once in the custom content.

To reproduce the issue, add some panel custom content and paste the following code in the content area, and save it, then view the live page with a user that has Panels IPE privileges:

<script type="text/javascript" src="http://embed.newsinc.com/TopPicks/embed.js?&amp;wid=1957&amp;cid=507&amp;freewheel=90017&amp;sitesection=non_fro&amp;parent=ndn_sliding_launcher"></script>

Comments

andi-d’s picture

We got the same problem with other Javascript Snippets.

eg. GoogleAd Snippets

patrickroma’s picture

Same here with the actual 6.x Version, IPE creates also double javscript load for blocks from modules...

patrickroma’s picture

Issue summary: View changes

I initially thought this issue applied to the "block" pane type, but I was wrong, blocks are fine. It is ONLY a problem in the "custom content" pane type.

japerry’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Drupal 7 is no longer supported, closing.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.