prevent default on lightbox close button
This commit is contained in:
parent
75115ccbb3
commit
0fbf366ef1
1 changed files with 4 additions and 1 deletions
|
|
@ -39,7 +39,10 @@ jQuery.fn.center = (function() {
|
|||
self.lightbox.css("max-height", (self.window.height() - 100) + "px");
|
||||
}).trigger("resize");
|
||||
|
||||
self.closelink.click(self.resetLightbox);
|
||||
self.closelink.click(function(evt){
|
||||
evt.preventDefault();
|
||||
self.resetLightbox();
|
||||
});
|
||||
|
||||
self.body.keydown(function(evt) {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue