From 58a891faa7f05e33eb13db5b4501180828ae856f Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Tue, 3 Feb 2015 08:55:41 +0000 Subject: [PATCH] Issue #2360175 by zaporylie, gaurav.goyal, droplet, sivaji@knackforge.com, mcdruid, nod_, er.pushpinderrana, brahmjeet789: Change .append(' ') with CSS style in system.admin.css --- core/misc/machine-name.js | 6 +++--- core/modules/system/css/system.admin.css | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/misc/machine-name.js b/core/misc/machine-name.js index 02819ac4f6c4a34..b9e87a6d1b8e01e 100644 --- a/core/misc/machine-name.js +++ b/core/misc/machine-name.js @@ -107,9 +107,9 @@ var $preview = $('' + options.field_prefix + Drupal.checkPlain(machine) + options.field_suffix + ''); $suffix.empty(); if (options.label) { - $suffix.append(' ').append('' + options.label + ':'); + $suffix.append('' + options.label + ': '); } - $suffix.append(' ').append($preview); + $suffix.append($preview); // If the machine name cannot be edited, stop further processing. if ($target.is(':disabled')) { @@ -126,7 +126,7 @@ }; // If it is editable, append an edit link. var $link = $('').on('click', eventData, clickEditHandler); - $suffix.append(' ').append($link); + $suffix.append($link); // Preview the machine name in realtime when the human-readable name // changes, but only if there is no machine name yet; i.e., only upon diff --git a/core/modules/system/css/system.admin.css b/core/modules/system/css/system.admin.css index f4445e244ed42d7..7f23aab0bd74640 100644 --- a/core/modules/system/css/system.admin.css +++ b/core/modules/system/css/system.admin.css @@ -67,7 +67,7 @@ * Quick inline admin links. */ small .admin-link:before { - content: '['; + content: ' ['; } small .admin-link:after { content: ']';