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 @ 0ccfec7f

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