Growl4Rails is now production ready. I've added the ability to show multiple growls at once, as well as improved support for IE. Here's a screen shot of the multiple Growls:
Unfortunately, the multiple growls thing was an entire rewrite of the code, so the usage is quite different.
Now, when you setup the includes, you specify default duration and max number of growls to show. These arguments are optional and will default to 3000 milliseconds and 3, respectively.
<%= growl4rails_includes(3000, 5) %>
Also, when showing the growls, the args are now a single hash, with named keys:
<script type="text/javascript" language="javascript">
Growl4Rails.showGrowl({
image_path:"/images/download.png",
title:"Foo Bar.pdf",
message:"File is ready for download."
});
</script>
When you want to handle the click event, you can wire up the event like so:
var growl_id = Growl4Rails.showGrowl({
image_path:"/images/download.png",
title:"Foo Bar.pdf",
message:"File is ready for download."
});
document.observe(growl_id + ':clicked', function(event) {
console.log('Growl %s was clicked.', Event.findElement(event).id);
});
Again, it's open source, so if you want to contribute, or if you have any feedback, you can check out the project on GitHub.