malsup / blockui

jQuery BlockUI Plugin
http://jquery.malsup.com/block/
1.69k stars 506 forks source link

Add Custom css class to growlUI #47

Open MarcovanMaanen opened 11 years ago

MarcovanMaanen commented 11 years ago

I have made a little change to it:

You can pick a custom css class just by setting the Bool (DifferentCssClasses) to true. and than give the css class name as second condition when you call the growlUI...

Now you can pick a custom class for succes, error, warning and notice messages (may come in handy at some point) with each there own image, color, css.

Only 1 this has changed: even if the option is false you must pass a empty string for a class or just set it to the default class...

Example: // With empty css class string... $.growlUI('Error', '', 'the message'); // With the default css class... $.growlUI('Error', 'growlUI', 'the message'); // With a custom css class... $.growlUI('Error', 'pick_a_css_class', 'the message');

DiegoYungh commented 9 years ago

I created a fork with all PR I saw here https://github.com/DiegoYungh/blockui/commits/master

In the near future I will probably create a block feature on top of blockui and open to pull requests

I set the commit message to your PR but was this one: Issue #36 : #37 opened on 15 Aug 2012 by wiggin15

I could not merge your PR because you changed the entire file.