From ecb638250ec079aa6473942cfedf7e45aa75544b Mon Sep 17 00:00:00 2001
From: Alex Barth <alex_b@53995.no-reply.drupal.org>
Date: Thu, 18 Feb 2010 16:27:25 +0000
Subject: [PATCH] #717168 nicholasThompson: Fix feeds UI JS doesn't select
 labels correctly.

---
 CHANGELOG.txt        | 1 +
 feeds_ui/feeds_ui.js | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 3bded5dc..e50d743b 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -3,6 +3,7 @@
 Feeds 6.x 1.0 xxxxx xx, xxxx-xx-xx
 ----------------------------------
 
+- #717168 nicholasThompson: Fix feeds UI JS doesn't select labels correctly.
 - #708228 Scott Reynolds, alex_b: Break FeedsImportBatch into separate classes.
   NOTE: FeedsFetcher implementations cannot use FeedsImportBatch directly
   anymore but most provide their own implementation of FeedsImportBatch. See
diff --git a/feeds_ui/feeds_ui.js b/feeds_ui/feeds_ui.js
index 7f0ac9e5..9908320f 100644
--- a/feeds_ui/feeds_ui.js
+++ b/feeds_ui/feeds_ui.js
@@ -53,7 +53,7 @@ Drupal.behaviors.feeds = function() {
   // Replace checkbox with .feeds-ui-checkbox-link class with a link.
   $('.feeds-ui-checkbox-link:not(.processed)').each(function(i) {
     $(this).addClass('processed').after(
-      '<a href="#" onclick="return false;" class="feeds-ui-trigger-remove">' + $(this).children(' label').text() + '</a>'
+      '<a href="#" onclick="return false;" class="feeds-ui-trigger-remove">' + $('label', this).text() + '</a>'
     ).hide();
   });
 
-- 
GitLab