Commit 09986016 authored by frjo's avatar frjo
Browse files

#813990: Use _colorbox_active() also when including colorbox_inline.js to...

#813990: Use _colorbox_active() also when including colorbox_inline.js to prevent errors that no settings is found.
parent 99650fc2
......@@ -120,7 +120,9 @@ class colorbox_handler_field_colorbox extends views_handler_field {
function render($values) {
// Load the necessary js file for Colorbox activation.
drupal_add_js(drupal_get_path('module', 'colorbox') . '/js/colorbox_inline.js');
if (_colorbox_active()) {
drupal_add_js(drupal_get_path('module', 'colorbox') . '/js/colorbox_inline.js');
// We need to have multiple unique IDs, one for each record.
static $i = 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment