comparison sites/all/modules/ctools/bulk_export/bulk_export.js @ 0:ff03f76ab3fe

initial version
author danieleb <danielebarchiesi@me.com>
date Wed, 21 Aug 2013 18:51:11 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:ff03f76ab3fe
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);