Projet

Général

Profil

Paste
Télécharger (646 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / colorbox / styles / stockholmsyndrome / colorbox_style.js @ 91f42c9e

1
(function ($) {
2

    
3
Drupal.behaviors.initColorboxStockholmsyndromeStyle = {
4
  attach: function (context, settings) {
5
    $(context).bind('cbox_open', function () {
6
      // Hide close button initially.
7
      $('#cboxClose', context).css('opacity', 0);
8
    });
9
    $(context).bind('cbox_load', function () {
10
      // Hide close button. (It doesn't handle the load animation well.)
11
      $('#cboxClose', context).css('opacity', 0);
12
    });
13
    $(context).bind('cbox_complete', function () {
14
      // Show close button with a delay.
15
      $('#cboxClose', context).fadeTo('fast', 0, function () {$(this).css('opacity', 1)});
16
    });
17
  }
18
};
19

    
20
})(jQuery);