root / drupal7 / sites / all / modules / colorbox / styles / default / colorbox_style.js @ b433176d
1 |
/**
|
---|---|
2 |
* @file
|
3 |
* Colorbox module style js.
|
4 |
*/
|
5 |
|
6 |
(function ($) { |
7 |
|
8 |
Drupal.behaviors.initColorboxDefaultStyle = { |
9 |
attach: function (context, settings) { |
10 |
$(context).bind('cbox_complete', function () { |
11 |
// Only run if there is a title.
|
12 |
if ($('#cboxTitle:empty', context).length == false) { |
13 |
$('#cboxLoadedContent img', context).bind('mouseover', function () { |
14 |
$('#cboxTitle', context).slideDown(); |
15 |
}); |
16 |
$('#cboxOverlay', context).bind('mouseover', function () { |
17 |
$('#cboxTitle', context).slideUp(); |
18 |
}); |
19 |
} |
20 |
else {
|
21 |
$('#cboxTitle', context).hide(); |
22 |
} |
23 |
}); |
24 |
} |
25 |
}; |
26 |
|
27 |
})(jQuery); |