Closed (outdated)
Project:
Flag
Version:
7.x-3.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Feb 2014 at 20:29 UTC
Updated:
19 Aug 2025 at 12:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
sagannotcarl commentedComment #2
shabana.navas commentedAs it is, the throbber only appears when the link type is toggle. Maybe you have some other module, theme, or css outputting a throbber and adding that extra space under flag.
Comment #3
sagannotcarl commentedHmm, maybe I'm confused. Doesn't this part of the flag.tpl.php output the throbber span regardless of type?
<a href="<?php print $link_href; ?>" title="<?php print $link_title; ?>" class="<?php print $flag_classes ?>" rel="nofollow"><?php print $link_text; ?></a><span class="flag-throbber"> </span>Comment #4
joachim commentedIt does, but that's an empty SPAN. I suspect that the JS only turns that into an actual throbber when it's been loaded for the JS link type.
Comment #5
sagannotcarl commentedYes, you are correct that it's empty, but it's still unnecessary markup that happened to have unintended in my situation. It seems to me that if the flag is specifically configured to not use javascript, then it's a best practice to not generate js-only markup.
Comment #6
sagannotcarl commented@joachim Actually looking at this again it's not actually an empty span, it's a span with a non-breaking space in it.
Comment #7
Scott Robertson commentedThis appears to still be an issue in the 7.x-3.x branch. @sagannotcarl is correct, the span actually has a non-breaking space, which can actually cause display issues, as was my case.
On a related note, I believe it also makes sense to hide the throbber span via CSS when it shouldn't actually be active. This way there aren't any markup issues, and the flag-throbber.gif can actually be loaded by the browser when the page is initially loaded, as opposed to when the link is actually clicked.
The attached patch adds to @sagannotcarl's patch to also make these CSS adjustments.
Comment #8
Scott Robertson commentedComment #9
Scott Robertson commentedWhoops, wrong patch :). Attaching the correct one.
Comment #11
ivnishDrupal 7 is EOL. Issue will be closed, but patches are still here