We have moved to Github. Please open tickets there.

Opened 2 years ago

Last modified 13 months ago

#3126 new Enhancement

Allow passing delay = 0 to elgg.system_messages() to disable fadeout

Reported by: brettp Owned by:
Priority: low Milestone: Near Term Future Release
Component: JavaScript Version: Github Master
Severity: trivial Keywords:
Cc: brett@… Difficulty: easy

Description

Will be useful for warnings (like the token refresh failed) that should be acknowledged.

Change History (4)

comment:1 Changed 2 years ago by cash

  • Component changed from Core to JavaScript

comment:2 Changed 2 years ago by ewinslow

  • Milestone changed from Elgg 1.8 to Elgg 1.8.x

comment:3 Changed 16 months ago by cash

  • Milestone changed from Elgg 1.8.x to Near Term Future Release

comment:4 Changed 13 months ago by juho.jaakkola

Before finding this ticket I had the idea of giving the messages an importance level and changing the look and behavior of the message depending on the level.

Example with three levels:

  1. A simple looking message that disappears quite quickly on its own
    • "Blog saved"
  2. The message is more prominent and stays visible longer
    • "Your blog post is missing a title and you should do something about it."
  3. User has to close the message manually by clicking a cross in the corner
    • "Something went horribly wrong and here's a lot of important information about it: ..."

But I'm not sure which is better, a delay or an importance level.

Oh and here are two related tickets. These three should probably be combined into one.

  • #4371 Modifying the system message delay time
  • #1390 Option to disable auto-close for system_message and register_error.
Note: See TracTickets for help on using tickets.