nodeblock.js 410 B

1234567891011121314
  1. (function ($) {
  2. /**
  3. * Update the summary for nodeblock's vertical tab.
  4. */
  5. Drupal.behaviors.nodeblock_fieldsetSummary = {
  6. attach: function (context) {
  7. // Use the fieldset id attribute to identify the vertical tab element.
  8. $('fieldset#edit-nodeblock-settings', context).drupalSetSummary(function (context) {
  9. return $('input[name=nodeblock]:checked + label').text();
  10. });
  11. }
  12. };
  13. })(jQuery);