From 5b47113b252d253341f344ca5435c9b5cb67de3b Mon Sep 17 00:00:00 2001
From: Gergely Tamas Kurucz <temaruk@gmail.com>
Date: Wed, 16 Jan 2013 15:19:18 +0100
Subject: [PATCH] Issue #1890194 by temaruk: Fixed flag link wrapper selector
 in JS.

---
 flagging_dialog.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flagging_dialog.js b/flagging_dialog.js
index fa6ac2a..7cf2241 100644
--- a/flagging_dialog.js
+++ b/flagging_dialog.js
@@ -71,7 +71,7 @@ Drupal.flagUtils = Drupal.flagUtils || {};
  */
 Drupal.flagUtils.updateContentIdLinks = function(data) {
 
-  var $wrappers = $('.flag-wrapper.flag-' + data.flagName + '-' + data.contentId);
+  var $wrappers = $('.flag-wrapper.flag-' + data.flagName.flagNameToCSS() + '-' + data.contentId);
 
   var $newLink = $(data.newLink);
   // Initially hide the message so we can fade it in.
-- 
1.8.1

