bulk_export.js 659 B

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