blob: 1aae5d1b77fc73ab87d008baf54b7ad36fbce0b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// $Id$
(function ($) {
Drupal.behaviors.uploadFieldsetSummaries = {
attach: function (context) {
$('fieldset#edit-attachments', context).setSummary(function (context) {
var size = $('#upload-attachments tbody tr').size();
return Drupal.formatPlural(size, '1 attachment', '@count attachments');
});
}
};
})(jQuery);
|