Projet

Général

Profil

Révision 91f42c9e

Ajouté par Assos Assos il y a presque 10 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/colorbox/styles/stockholmsyndrome/colorbox_style.js
2 2

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

Formats disponibles : Unified diff