Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello, please add fadeOut function for flag-message class
file: flag.js
line 45:
$('.flag-message', $newLink).fadeIn();
Add new line:
setTimeout(function(){ $('.flag-message').fadeOut() }, 2000);
This will hide message text after 2 seconds, so it won't be near the flag all the time.
Thanks.
Comment | File | Size | Author |
---|---|---|---|
#2 | flag_fadeout.patch | 498 bytes | quicksketch |
Comments
Comment #1
Flying Drupalist CreditAttribution: Flying Drupalist commentedYeah I agree.
Comment #2
quicksketchI went with a 3 second delay instead of 2, since my messages can get pretty long and I'd like to be able to read the entire message twice before it disappears. I also added in the context of $newLink, so it only fades out the current link message, not all the link messages on the page (not that it matters much since there should only be one anyway, but it's more efficient). Thanks for the suggestion.
Comment #4
Kane CreditAttribution: Kane commentedIt seems like in one of the latest releases that patch wasn't included?