Browse files

Patch from Константин Сергеевич to allow closing the Facebox while it…

… is loading.
  • Loading branch information...
1 parent a4c12b9 commit 42c23f435ee021ee30af912b112bc90980f661e7 @defunkt defunkt committed Mar 12, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 facebox.js
View
1 facebox.js
@@ -95,6 +95,7 @@
$(document).bind('keydown.facebox', function(e) {
if (e.keyCode == 27) $.facebox.close()
})
+ $('#facebox .close').click($.facebox.close)
}
$.facebox.reveal = function(data, klass) {

0 comments on commit 42c23f4

Please sign in to comment.