Created
April 29, 2015 13:47
-
-
Save matheusagcosta/697f7166a54f29c3c5ba to your computer and use it in GitHub Desktop.
Flash Message Toggle
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
$(function() { | |
var flashCallback; | |
flashCallback = function() { | |
return $("#flash-messages").fadeOut(); | |
}; | |
$("#flash-messages-close").bind('click', (function(_this) { | |
return function(ev) { | |
return $("#flash-messages").fadeOut(); | |
}; | |
})(this)); | |
return setTimeout(flashCallback, 3000); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment