Closed (fixed)
Project:
Colorbox
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 Dec 2009 at 14:32 UTC
Updated:
20 Jan 2010 at 23:40 UTC
when you first enable colorbox it should check whether the library is found or it will break js currently on website.
Drupal.behaviors.colorbox = function (context) {
$('.colorbox').colorbox();
};
to
if (typeof colorbox == 'function' and colorbox != undefined) {
Drupal.behaviors.colorbox = function (context) {
$('.colorbox').colorbox();
};
}
Comments
Comment #1
electblake commentedI updated code to use jquery itself, seemed sexier..
Comment #2
jdwfly commentednice catch i'll put it in there.
Comment #3
jdwfly commentedcommitted