root / drupal7 / sites / all / modules / ctools / bulk_export / bulk_export.js @ 6e3ce7c2
1 |
|
---|---|
2 |
/**
|
3 |
* @file
|
4 |
* CTools Bulk Export javascript functions.
|
5 |
*/
|
6 |
|
7 |
(function ($) { |
8 |
|
9 |
Drupal.behaviors.CToolsBulkExport = { |
10 |
attach: function (context) { |
11 |
|
12 |
$('#bulk-export-export-form .vertical-tabs-pane', context).drupalSetSummary(function (context) { |
13 |
|
14 |
// Check if any individual checkbox is checked.
|
15 |
if ($('.bulk-selection input:checked', context).length > 0) { |
16 |
return Drupal.t('Exportables selected'); |
17 |
} |
18 |
|
19 |
return ''; |
20 |
}); |
21 |
|
22 |
// Special bind click on the select-all checkbox.
|
23 |
$('.select-all').bind('click', function(context) { |
24 |
$(this, '.vertical-tabs-pane').drupalSetSummary(context); |
25 |
}); |
26 |
} |
27 |
}; |
28 |
|
29 |
})(jQuery); |