Commit 881be738 authored by Dries's avatar Dries

- 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
......@@ -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,
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment