123456789101112131415161718192021222324252627 |
- /**
- * @file
- * Colorbox module style js.
- */
- (function ($) {
- Drupal.behaviors.initColorboxDefaultStyle = {
- attach: function (context, settings) {
- $(context).bind('cbox_complete', function () {
- // Only run if there is a title.
- if ($('#cboxTitle:empty', context).length == false) {
- $('#cboxLoadedContent img', context).bind('mouseover', function () {
- $('#cboxTitle', context).slideDown();
- });
- $('#cboxOverlay', context).bind('mouseover', function () {
- $('#cboxTitle', context).slideUp();
- });
- }
- else {
- $('#cboxTitle', context).hide();
- }
- });
- }
- };
- })(jQuery);
|