diff --git a/js/colorbox_inline.js b/js/colorbox_inline.js index f515036..f792146 100644 --- a/js/colorbox_inline.js +++ b/js/colorbox_inline.js @@ -38,7 +38,12 @@ Drupal.behaviors.initColorboxInline = { return $.urlParam('height', $(this).attr('href')); }, title:function(){ - return decodeURIComponent($.urlParam('title', $(this).attr('href'))); + var title = decodeURIComponent($.urlParam('title', $(this).attr('href'))); + if (!!settings.colorbox.title) { + $(this).attr('title', title); + return settings.colorbox.title.call(this); + } + return title; }, iframe:function(){ return $.urlParam('iframe', $(this).attr('href'));