Lightbox Broken on "Dreamy" Theme

requenym - July 11, 2008 - 19:49
Project:Dreamy
Version:6.x-1.3
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

Look at the attached screenshot to see how a number of things display incorrectly...

Loading image never goes away, close, next, previous, and expand always appear...

Any suggestions?

Submitted to Dreamy and told to seek help here.
http://drupal.org/node/279498

AttachmentSize
dreamy-lightboxjs issues.JPG111.16 KB

#1

stella - July 12, 2008 - 00:20

Do you have the "nice menus" module enabled? If so, disable it and it should fix your problem. It adds javascript to the page incorrectly which causes a lot of javascript functions to be run twice.

Cheers,
Stella

#2

requenym - July 13, 2008 - 20:55

No nice menu's module installed--thanks for the tip though

#3

stella - July 15, 2008 - 09:43
Project:Lightbox2» Dreamy
Version:6.x-1.8» 6.x-1.3
Component:User interface» Code
Priority:normal» critical

Ok I installed the Dreamy theme and it's a bug with the theme. On line 13 of node.tpl.php, there is drupal_add_js('misc/drupal.js');. This is invalid, no theme should be doing this (or the other drupal_add_js() lines). The javascript is already added to the page on line 11 of page.tpl.php with

  <?php print $scripts ?>
. By adding it again in node.tpl.php, the javascript is called twice resulting in page rendering issues like the one mentioned.

Re-assigning to the Dreamy theme project.

Cheers,
Stella

#4

bboyjay - July 17, 2008 - 14:05
Status:active» fixed

fixed. thanks

#5

bboyjay - July 24, 2008 - 20:27
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.