/[drupal]/drupal/modules/upload/upload.js
ViewVC logotype

Contents of /drupal/modules/upload/upload.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download) (as text)
Mon Apr 27 20:19:38 2009 UTC (7 months ago) by webchick
Branch: MAIN
CVS Tags: DRUPAL-7-0-UNSTABLE-8, DRUPAL-7-0-UNSTABLE-9, DRUPAL-7-0-UNSTABLE-10, DRUPAL-7-0-UNSTABLE-7, HEAD
Changes since 1.2: +4 -4 lines
File MIME type: text/javascript
#444402 follow-up by kkaefer: Fix autocomplete, enforce code style for anonymous JS functions.
1 // $Id: upload.js,v 1.2 2009/04/12 03:52:22 webchick Exp $
2
3 (function ($) {
4
5 Drupal.behaviors.uploadFieldsetSummaries = {
6 attach: function (context) {
7 $('fieldset#edit-attachments', context).setSummary(function (context) {
8 var size = $('#upload-attachments tbody tr').size();
9 return Drupal.formatPlural(size, '1 attachment', '@count attachments');
10 });
11 }
12 };
13
14 })(jQuery);

  ViewVC Help
Powered by ViewVC 1.1.2