1 |
85ad3d82
|
Assos Assos
|
(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); |