Most recent version of Colorbox stores jquery.colorbox-min.js in a different place. Here's a simple patch that fixes the path.

I'm wondering if we should even add colorbox library this way, could we just call drupal_add_library('media_browser_plus', 'colorbox'); somewhere?

Comments

paulihuhtiniemi’s picture

Here's the actual patch.

frjo’s picture

Since you already have an dependency for colorbox why not use its library integration?

dependencies[] = libraries (2.x)
dependencies[] = colorbox (2.x)

and then you can load the Colorbox plugin where ever you need with a simple

$variant = variable_get('colorbox_compression_type', 'minified');
libraries_load('colorbox', $variant);
frjo’s picture

Issue summary: View changes

updated js file name.

kruser’s picture

I think this need fixed in 7.x-3.x-dev too because I'm getting errors of it looking for /sites/all/libraries/colorbox/colorbox/jquery.colorbox-min.js?v=1.3.9 - but it should be /sites/all/libraries/colorbox/jquery.colorbox-min.js?v=1.3.9

salvis’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)