= Overlay
An overlay is now automatically inserted when the Facebox is opened.
It is, by default, invisible. To increase the opacity of the overlay
(in order to produce a grayed out background effect), use the
'opacity' setting:
$.facebox.opacity = 0.5
You can disable the overlay with the 'overlay' setting:
$.facebox.overlay = false
Clicking on the overlay (or anywhere outside the Facebox) will now
close it. This brings the total ways to close the Facebox to three:
clicking outside the Facebox, clicking on the 'close' button, and
hitting 'escape.'
= Width
The position of the Facebox is now determined dynamically, based on
the width of the content.
= Events
You can now better hook into Facebox's lifecycle by using the following events:
init.facebox
loading.facebox
beforeReveal.facebox
reveal.facebox (aliased as 'afterReveal.facebox')
close.facebox
Simply bind a function to any of these hooks:
$(document).bind('reveal.facebox', function() {
...stuff to do after the facebox and contents are revealed...
})
= Settings
All two word settings now use the more Javascriptish camelCase
convention over the under_bars. The loading_image, close_image, and
image_types settings are now renamed as loadingImage, closeImage, and
imageTypes. The old ones still work but are deprecated.
= CSS Fixes
There have been a number of CSS fixes for stuff like Blueprint and YUI
CSS. Check the changelog for more into.
= Source Control
If you would like to contribute or follow development, the official
repository is located on GitHub: http://github.com/defunkt/facebox
= Full Changelog
http://github.com/defunkt/facebox/commits/v1.2
--
Chris Wanstrath
http://github.com/defunkt
- Chris