I have Colorbox module installed and have been getting frustrated that it's not working on the homepage. It works fine when you're on the node page, but not when you have 'Single Page Website' enabled. What happens is when you click on the Colorbox link, you get a black screen with the borders showing at the top left in a 20x20 rounded square. There is no content. But when you go to the node page itself, everything works fine. There's probably a script conflict somewhere, but I cannot find it. Here is the error I receive from Firebug.

$close.html(settings.close).show is not a function Line 287

Comments

yaremchuk’s picture

Status: Active » Needs review

Hi Shashi,
please comment following lines in your bartik.js:
//var single_page = $("#single_page_wrapper").html();
//$(content_element).empty();
//$(content_element).html(single_page);

Also colorbox conflicted with easing JQuery plugin.
In the current dev version I deny use easing if colorbox module installed

Please check, and let me know if it works.

x7ian’s picture

Version: 7.x-2.0-beta3 » 7.x-2.x-dev
Component: User interface » Code
Assigned: Unassigned » x7ian
Status: Needs review » Patch (to be ported)
StatusFileSize
new729 bytes

Hello Vasily and the others,
Im submiting a patch that fixes the conflict issues with other jquery plugins.
This fix is only for the Bartik theme and sub-thems.
What it does its modify the procedure that transports the contents to the #main container, so that instead of "copying and pasting" the contents on #single_page_wrapper to #main, it uses jQuery unwrap() function to go on removing wrapers around the #single_page_wrapper contents till it is at te #main wraper.

Please review it and consider addin it to the final version.

x7ian’s picture

Component: Code » Miscellaneous
Category: bug » task
Status: Patch (to be ported) » Fixed

I tested it with the Colorbox plugin and works like a charm!
;-)

shashi_lo’s picture

You the man! Colorbox is working like a charm.

yaremchuk’s picture

Status: Fixed » Closed (fixed)

fixed in dev version