Projet

Général

Profil

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

root / drupal7 / sites / all / modules / commerce / modules / customer / commerce_customer.js @ b858700c

1
(function($) {
2

    
3
Drupal.behaviors.customerFieldsetSummaries = {
4
  attach: function (context, settings) {
5
    $('fieldset#edit-user', context).drupalSetSummary(function (context) {
6
      var name = $('#edit-name').val() || Drupal.settings.anonymous;
7

    
8
      return Drupal.t('Owned by @name', { '@name': name });
9
    });
10

    
11
    $('fieldset#edit-profile-status', context).drupalSetSummary(function (context) {
12
      return ($('input[@name=status]:checked').val() == 0) ?
13
        Drupal.t('Disabled') :
14
        Drupal.t('Active');
15
    });
16
  }
17
};
18

    
19
})(jQuery);