Projet

Général

Profil

Révision 4eeb3b46

Ajouté par Assos Assos il y a presque 8 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/themes/bootstrap/js/modules/ctools/js/modal.js
103 103
    $('#modalContent .modal-body').html(Drupal.theme(settings.throbberTheme));
104 104
  };
105 105

  
106
  Drupal.CTools.Modal.dismiss = function() {
107
    if (Drupal.CTools.Modal.modal) {
108
      $('body').removeClass('modal-open');
109
      Drupal.CTools.Modal.unmodalContent(Drupal.CTools.Modal.modal);
110
    }
111
  };
106
  /**
107
   * Remove modal class from body when closing modal.
108
   */
109
  $(document).on('CToolsDetachBehaviors', function() {
110
    $('body').removeClass('modal-open');
111
  });
112 112

  
113 113
  /**
114 114
   * Provide the HTML to create the modal dialog in the Bootstrap style.

Formats disponibles : Unified diff