Projet

Général

Profil

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

root / drupal7 / sites / all / modules / file_entity / file_entity.js @ 66c11afc

1
(function ($) {
2

    
3
Drupal.behaviors.fileFieldsetSummaries = {
4
  attach: function (context) {
5
    $('fieldset.file-form-destination', context).drupalSetSummary(function (context) {
6
      var scheme = $('.form-item-scheme input:checked', context).parent().text();
7
      return Drupal.t('Destination: @scheme', { '@scheme': scheme });
8
    });
9
    $('fieldset.file-form-user', context).drupalSetSummary(function (context) {
10
      var name = $('.form-item-name input', context).val() || Drupal.settings.anonymous;
11
      return Drupal.t('Associated with @name', { '@name': name });
12
    });
13
  }
14
};
15

    
16
})(jQuery);