I would love the ability to configure the length of time before the Flagged/Unflagged Messages timeout, even setting it to not timeout at all.

In my case, I'm building the ability to create a custom itinerary, and the messages include a link to a page where the user can view/manage everything they've flagged. It will be something like "______ has been added to (or removed from) your custom itinerary. Click here to view your full itinerary". Not sure if this would be a common need but thought I would start a discussion about it.

Thanks!

Comments

joachim’s picture

Version: 7.x-3.0-alpha4 » 7.x-3.x-dev
Issue tags: +JavaScript

I'm not sure where that time limit is set; you'd need to look in the javascript.

alexweber’s picture

It's 3 seconds, defined on line 46 of flag.js:

    $('.flag-message', $newLink).fadeIn();
    setTimeout(function(){ $('.flag-message', $newLink).fadeOut() }, 3000);

I could write a patch but I'm wondering if this feature is even being considered by the maintainers?

alexweber’s picture

#1520404: Keeping the "Flagged message" visible was marked as a duplicate of this issue.

areikiera’s picture

Thanks alexweber! That's where I changed it too, and it's a great temporary solution.

I'd definitely appreciate a patch, and would be happy to help test it. Are there others who would like to see this feature implemented?