workflow.js 443 B

123456789101112131415
  1. (function ($) {
  2. /**
  3. * Custom summary for the module vertical tab.
  4. */
  5. Drupal.behaviors.workflow_node_formFieldsetSummaries = {
  6. attach: function (context) {
  7. // Use the fieldset id to identify the vertical tab element
  8. $('fieldset#edit-workflow', context).drupalSetSummary(function (context) {
  9. return Drupal.checkPlain($('.form-item-workflow-scheduled input:checked', context).next('label').text());
  10. });
  11. }
  12. };
  13. })(jQuery);