Mercurial > hg > rr-repo
view 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 |
line wrap: on
line source
/** * @file * CTools Bulk Export javascript functions. */ (function ($) { Drupal.behaviors.CToolsBulkExport = { attach: function (context) { $('#bulk-export-export-form .vertical-tabs-pane', context).drupalSetSummary(function (context) { // Check if any individual checkbox is checked. if ($('.bulk-selection input:checked', context).length > 0) { return Drupal.t('Exportables selected'); } return ''; }); // Special bind click on the select-all checkbox. $('.select-all').bind('click', function(context) { $(this, '.vertical-tabs-pane').drupalSetSummary(context); }); } }; })(jQuery);