I've extended the alert function with a second parameter named type.
The type parameter is then used to derive a CSS class name to indicate different types of alerts. If not set it will default to 'default'. Others I use are: 'success', 'info' and error.
It would be nice if the base function would add the parameter and calls in core code set the type (even if it is ignored), because right now all core alerts are displayed with the same type (default).
I've extended the alert function with a second parameter named type. The type parameter is then used to derive a CSS class name to indicate different types of alerts. If not set it will default to 'default'. Others I use are: 'success', 'info' and error. It would be nice if the base function would add the parameter and calls in core code set the type (even if it is ignored), because right now all core alerts are displayed with the same type (default).