3 Drupal
.behaviors
.contentTypes
= {
4 attach: function (context
) {
5 // Provide the vertical tab summaries.
6 $('fieldset#edit-submission', context
).drupalSetSummary(function(context
) {
8 vals
.push(Drupal
.checkPlain($('#edit-title-label', context
).val()) || Drupal
.t('Requires a title'));
9 return vals
.join(', ');
11 $('fieldset#edit-workflow', context
).drupalSetSummary(function(context
) {
13 $("input[name^='node_options']:checked", context
).parent().each(function() {
14 vals
.push(Drupal
.checkPlain($(this).text()));
16 if (!$('#edit-node-options-status', context
).is(':checked')) {
17 vals
.unshift(Drupal
.t('Not published'));
19 return vals
.join(', ');
21 $('fieldset#edit-display', context
).drupalSetSummary(function(context
) {
23 $('input:checked', context
).next('label').each(function() {
24 vals
.push(Drupal
.checkPlain($(this).text()));
26 if (!$('#edit-node-submitted', context
).is(':checked')) {
27 vals
.unshift(Drupal
.t("Don't display post information"));
29 return vals
.join(', ');