A small growl-like notification plugin for jQuery
$ bower install jquery.gritter
- Fixing bug where click event was being bound multiple times on hover. The result was the beforeClose callback being called multiple times. Thanks for commit aossowski!
- Added $.gritter.options.class_name option
- Added 'gritter-light' class_name option to use light messages instead of dark ones
- Added option to return false on "before_open" callback to determine whether or not to show the gritter message (good for setting a max)
- Dropped IE6 support
- Added position option to global options (bottom-left, top-left, top-right, bottom-right)
- Fixed 404 issue in the css when fetching '.' as an image
- Added callback parameter in before_close and after_close callbacks to determine whether it was closed manually by clicking the (X)
- Commented code using JSDOC
- Major code cleanup/re-write
- Made it so when you hit the (X) close button, the notification slides up and vanishes instead of just vanishing
- Added optional "class_name" option for $.gritter.add() to apply a class to a specific notification
- Fixed IE7 issue pointed out by stoffel (http://boedesign.com/blog/2009/07/11/growl-for-jquery-gritter/)
- Renamed the global option parameters to make more sense
- Made it so the global options are only being ran once instead of each $.gritter.add() call
- Added callbacks (before_open, before_close, after_open, after_close) to the gritter notifications
- Added callbacks (before_close, after_close) to the removeAll() function
- Using 1 image for the CSS instead of 5 (Thanks to Ozum Eldogan)
- Added option to over-ride gritter global options with $.extend
- Fixed IE6 positioning bug
- Fixed hover bug (pointed out by Beel & tXptr on the comments)