ericabouaf / wireit

A javascript wiring library to create web wirable interfaces for dataflow applications, visual programming languages or graphical modeling.
http://neyric.github.io/wireit/docs/
Other
520 stars 90 forks source link

add message type to alert function #34

Open DerManoMann opened 14 years ago

DerManoMann commented 14 years ago

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).