Fix for Code

  1. // $Id: colorbox_default_style.js,v 1.2 2010/04/18 14:36:29 frjo Exp $
  2. (function ($) {
  3.  
  4. Drupal.behaviors.initColorboxDefaultStyle = function (context) {
  5.   $(document).bind('cbox_complete', function(){
  6.     // Only run if there is a title.
  7.     if ($('#cboxTitle:empty').length == false) {
  8.       setTimeout(function(){ $('#cboxTitle').slideUp() }, 1500);
  9.       $('#cboxLoadedContent').bind('mouseover', function(){
  10.         $('#cboxTitle').slideDown();
  11.       });
  12.       $('#cboxOverlay').bind('mouseover', function(){
  13.         $('#cboxTitle').slideUp();
  14.       });
  15.     }
  16.     else {
  17.       $('#cboxTitle').hide();
  18.     }
  19.   });
  20. };
  21.  
  22. })(jQuery);

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.