summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/node/node.js
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2013-09-22 01:39:42 +0200
committerwebchick <webchick@24967.no-reply.drupal.org>2013-09-22 01:39:42 +0200
commitbb29548d193b56c73e84ff0c7888d721aa3e2902 (patch)
tree74a247f2cb5e45b63ee632d5cd080871d012ead4 /core/modules/node/node.js
parentee74914b503db5b97285acb8bcf012eeaffd4e62 (diff)
downloaddrupal-bb29548d193b56c73e84ff0c7888d721aa3e2902.tar.gz
drupal-bb29548d193b56c73e84ff0c7888d721aa3e2902.zip
Issue #1793648 by nod_, kmox83, droplet, rteijeiro: Follow-up: replace all occurence of Drupal.settings with drupalSettings.
Diffstat (limited to 'core/modules/node/node.js')
-rw-r--r--core/modules/node/node.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/modules/node/node.js b/core/modules/node/node.js
index b61c1175f9da..f0b5a38f37e1 100644
--- a/core/modules/node/node.js
+++ b/core/modules/node/node.js
@@ -3,7 +3,7 @@
* Defines Javascript behaviors for the node module.
*/
-(function ($) {
+(function ($, Drupal, drupalSettings) {
"use strict";
@@ -27,7 +27,7 @@ Drupal.behaviors.nodeDetailsSummaries = {
$context.find('.node-form-author').drupalSetSummary(function (context) {
var $context = $(context);
- var name = $context.find('.form-item-name input').val() || Drupal.settings.anonymous,
+ var name = $context.find('.form-item-name input').val() || drupalSettings.anonymous,
date = $context.find('.form-item-date input').val();
return date ?
Drupal.t('By @name on @date', { '@name': name, '@date': date }) :
@@ -67,4 +67,4 @@ Drupal.behaviors.nodeDetailsSummaries = {
}
};
-})(jQuery);
+})(jQuery, Drupal, drupalSettings);