Skip to content
Snippets Groups Projects
Commit 881be738 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #431300 by dmitrig01, kkaefer, mgifford, Dave Reid: authoring...

- Patch #431300 by dmitrig01, kkaefer, mgifford, Dave Reid: authoring information vertical tab mishandles 'Anonymous'.
parent b4848f66
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,8 @@ Drupal.behaviors.nodeFieldsetSummaries = {
});
$('fieldset#edit-author', context).drupalSetSummary(function (context) {
var name = $('#edit-name').val(), date = $('#edit-date').val();
var name = $('#edit-name').val() || Drupal.settings.anonymous,
date = $('#edit-date').val();
return date ?
Drupal.t('By @name on @date', { '@name': name, '@date': date }) :
Drupal.t('By @name', { '@name': name });
......
......@@ -196,7 +196,13 @@ function node_form($form, &$form_state, $node) {
'#collapsed' => TRUE,
'#group' => 'additional_settings',
'#attached' => array(
'js' => array(drupal_get_path('module', 'node') . '/node.js'),
'js' => array(
drupal_get_path('module', 'node') . '/node.js',
array(
'type' => 'setting',
'data' => array('anonymous' => variable_get('anonymous', t('Anonymous'))),
),
),
),
'#weight' => 90,
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment