Multiple instances of PicLens javascript from drupal_set_html_head

dldege - August 6, 2008 - 16:13
Project:Cooliris (PicLens formerly)
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

I added piclens support to the node_view of my particular node type. When view /node I get multiple instances of the piclens javascript in the head.

<script type="text/javascript" src="http://lite.piclens.com/current/piclens_optimized.js"></script>
<link rel="alternate" type="application/rss+xml" title="dev - mediaRSS" href="http://localhost/sliderdev/piclens/slider_piclens/579" />

<script type="text/javascript" src="http://lite.piclens.com/current/piclens_optimized.js"></script>
<link rel="alternate" type="application/rss+xml" title="dev - mediaRSS" href="http://localhost/sliderdev/piclens/slider_piclens/560" />

This is because a check for duplicates is not made nor is drupal_add_js() used and/or does not support external JS files.

#1

swentel - August 6, 2008 - 23:11
Version:5.x-1.5» 5.x-1.x-dev

I'll use a static var to fix the inclusion of the piclens javascript.
The multiple rss feed links are ok to stay, right ?

(changed version to dev also, since I'm going to work on that - it has way more features and bugfixes allready and this should be included in next release - at least the D5 version)

#2

swentel - August 7, 2008 - 10:49
Status:active» fixed

commited to drupal 5 and 6 branch, thanks for the report!

#3

dldege - August 7, 2008 - 15:40

Yes, each feed should be listed. I will test this new version. Thanks.

#4

dldege - August 7, 2008 - 16:37

This is fixed in my testing. Thanks.

#5

Anonymous (not verified) - August 21, 2008 - 16:43
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.