MyBB Community Forums

Full Version: jGrowl alert types
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The jGrowl alerts should have a class appended to them that defines what type of alert they are. 
E.g. an alert that notifies that the message is not long enough(1) should have a class named "jgrowl-error" appended to it. 
Another alert that notifies something successful(2) should have a class named "jgrowl-message" appended to it. 


In my themes I like to provide as much information to users regarding something(through icon usage etc). The current system does not allow that(without core edits obviously). 

Oh and a way to do this is through using
$.jGrowl("Hello world!", {theme: "jGrowl-error");
where "jGrowl-error" is the class name that will get added.
Any feedback?
I don't see why not.
Bump. Really looking forward to this.
(2015-02-05, 02:07 PM)LucasC Wrote: [ -> ]Bump. Really looking forward to this.

Feel free to create a PR with required changes.
Seems quite a nice addition.
Please see [Issue #1810]