summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2014-11-02 16:11:48 -0500
committerDavid Rothstein <drothstein@gmail.com>2014-11-02 16:11:48 -0500
commit355446db94f4ad4e0a75f22e00d12f524a2807d4 (patch)
treed6fc8f7818b0f8ecfb3364ef08f60f85e02019ee
parent2a4f67cdc54a35c17b7d75e16858f236986cd8b4 (diff)
downloadbrdo-355446db94f4ad4e0a75f22e00d12f524a2807d4.tar.gz
brdo-355446db94f4ad4e0a75f22e00d12f524a2807d4.tar.bz2
Issue #1195358 by Liam Morland, droplet: Fixed Multiple "Edit/Hide summary" links appear.
-rw-r--r--modules/field/modules/text/text.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/field/modules/text/text.js b/modules/field/modules/text/text.js
index f3ae89430..c1ab2f695 100644
--- a/modules/field/modules/text/text.js
+++ b/modules/field/modules/text/text.js
@@ -12,9 +12,9 @@ Drupal.behaviors.textSummary = {
$summaries.once('text-summary-wrapper').each(function(index) {
var $summary = $(this);
- var $summaryLabel = $summary.find('label');
+ var $summaryLabel = $summary.find('label').first();
var $full = $widget.find('.text-full').eq(index).closest('.form-item');
- var $fullLabel = $full.find('label');
+ var $fullLabel = $full.find('label').first();
// Create a placeholder label when the field cardinality is
// unlimited or greater than 1.