forked from stanlemon/jGrowl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
stanlemon
committed
Dec 13, 2009
1 parent
62cc1e3
commit 9a09fe0
Showing
4 changed files
with
70 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
/** | ||
* jGrowl 1.2.3 | ||
* jGrowl 1.2.4 | ||
* | ||
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) | ||
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. | ||
* | ||
* Written by Stan Lemon <[email protected]> | ||
* Last updated: 2009.11.13 | ||
* Last updated: 2009.12.13 | ||
* | ||
* jGrowl is a jQuery plugin implementing unobtrusive userland notifications. These | ||
* notifications function similarly to the Growl Framework available for | ||
|
@@ -14,6 +14,12 @@ | |
* To Do: | ||
* - Move library settings to containers and allow them to be changed per container | ||
* | ||
* Changes in 1.2.4 | ||
* - Fixed IE bug with the close-all button | ||
* - Fixed IE bug with the filter CSS attribute (special thanks to gotwic) | ||
* - Update IE opacity CSS | ||
* - Changed font sizes to use "em", and only set the base style | ||
* | ||
* Changes in 1.2.3 | ||
* - The callbacks no longer use the container as context, instead they use the actual notification | ||
* - The callbacks now receive the container as a parameter after the options parameter | ||
|
@@ -206,6 +212,10 @@ | |
} | ||
|
||
$(this).animate(o.animateOpen, o.speed, o.easing, function() { | ||
// Fixes some anti-aliasing issues with IE filters. | ||
if ($.browser.msie && (parseInt($(this).css('opacity'), 10) === 1 || parseInt($(this).css('opacity'), 10) === 0)) | ||
this.style.removeAttribute('filter'); | ||
|
||
$(this).data("jGrowl").created = new Date(); | ||
}); | ||
} | ||
|
@@ -217,8 +227,9 @@ | |
$(this).data('jGrowl.pause', true); | ||
$(this).animate(o.animateClose, o.speed, o.easing, function() { | ||
$(this).remove(); | ||
var close = o.close.apply( notification , [notification,message,o,self.element] ); | ||
|
||
if ( (close = o.close.apply( notification , [notification,message,o,self.element] )) && $.isFunction(close) ) | ||
if ( $.isFunction(close) ) | ||
close.apply( notification , [notification,message,o,self.element] ); | ||
}); | ||
}).trigger('jGrowl.beforeOpen'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.