summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2013-10-02 21:29:33 (GMT)
committerAlex Pott2013-10-02 21:29:33 (GMT)
commit0284fcf96e72ba73f1a1f3e651fcd1553fc1aaaf (patch)
treedd692bcf99bca9a744d0caf40a44c04ea0a49c96
parent5d2de6c815858d5bb604b547df92035c16a9a6ce (diff)
Issue #1195358 by Liam Morland: Fixed Multiple 'Edit/Hide summary' links appear.
-rw-r--r--core/modules/text/text.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/text/text.js b/core/modules/text/text.js
index 7e63c09..347b6e8 100644
--- a/core/modules/text/text.js
+++ b/core/modules/text/text.js
@@ -11,9 +11,9 @@ Drupal.behaviors.textSummary = {
var $widget = $(this).closest('.text-format-wrapper');
var $summary = $widget.find('.text-summary-wrapper');
- var $summaryLabel = $summary.find('label');
+ var $summaryLabel = $summary.find('label').first();
var $full = $widget.find('.text-full').closest('.form-item');
- var $fullLabel = $full.find('label');
+ var $fullLabel = $full.find('label').first();
// Create a placeholder label when the field cardinality is greater
// than 1.