diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/ctools/bulk_export/bulk_export.js	Wed Aug 21 18:51:11 2013 +0100
@@ -0,0 +1,29 @@
+
+/**
+ * @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);