Commit 7334001e authored by frjo's avatar frjo
Browse files

#1030178: Bug fix for the Colorbox trigger, unique ID was counted up +1 in the...

#1030178: Bug fix for the Colorbox trigger, unique ID was counted up +1 in the middle of building the popup, rookie mistake. Big thanks to stevieb for reporting it.
parent 932f7f4c
......@@ -115,6 +115,7 @@ class colorbox_handler_field_colorbox extends views_handler_field {
// We need to have multiple unique IDs, one for each record.
static $i = 0;
$i++;
// Return nothing if no trigger filed is selected.
if (empty($this->options['trigger_field'])) {
......@@ -148,8 +149,6 @@ class colorbox_handler_field_colorbox extends views_handler_field {
)
);
$i++;
$link_tag = l($link_text, '', $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