Commit dbcfba6e authored by frjo's avatar frjo
Browse files

Issue #1894332 by Anandyrh: Bug where a class attribute was a string and not a...

Issue #1894332 by Anandyrh: Bug where a class attribute was a string and not a array. This made the trigger field not work in some cases.
parent 76ba1eee
......@@ -139,7 +139,7 @@ function theme_colorbox_imagefield($variables) {
'html' => TRUE,
'attributes' => array(
'title' => $variables['title'],
'class' => implode(' ', $class),
'class' => $class,
'rel' => $variables['gid'],
)
);
......
......@@ -179,7 +179,7 @@ If you would like to have the characters %5B and %5D please use the html entity
'inline' => 'true'
),
'attributes' => array(
'class' => 'colorbox-inline',
'class' => array('colorbox-inline'),
'rel' => $gallery_id
)
);
......@@ -189,7 +189,6 @@ If you would like to have the characters %5B and %5D please use the html entity
// If the nid is present make the link degrade to the node page if
// JavaScript is off.
$link_target = isset($values->nid) ? 'node/' . $values->nid : '';
$link_tag = l($link_text, $link_target, $link_options);
// The outside div is there to hide all of the divs because if the specific Colorbox
......
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