Commit f06e8928 authored by jdwfly's avatar jdwfly
Browse files

#648542 by kiwi_steve:integrate with image attach.

parent b5d015f8
// $Id$
if (jQuery().colorbox) {
Drupal.behaviors.colorbox = function (context) {
// Image Attach Functionality
$('.image-attach-body > a').each(function (i) {
// Modify link to jpg
this.href = $('.image-attach-body > a > img:eq('+i+')').attr("src").replace(".thumbnail", "");
// Add rel tag to group
this.rel = "testing1";
// Colorbox it
$("a[rel='testing1']").colorbox();
});
$('.colorbox').colorbox();
};
}
......@@ -63,7 +63,7 @@ function colorbox_admin_settings() {
/**
* Implementation of hook_link_alter().
*/
function colorbox_link_alter(&$links, $node) {
function colorbox_link_alter(&$links, $node) {
if ($node->type != 'image') {
return;
}
......
Supports Markdown
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