From 4525ab2e6d1f7d88c9e5f3efd93b8e8b86447cd5 Mon Sep 17 00:00:00 2001 From: Oliver Kovacs Date: Tue, 21 Jan 2014 17:28:12 +0100 Subject: [PATCH] Fix reveal is not closing on backdrop click if animations are off. --- js/foundation/foundation.reveal.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/foundation/foundation.reveal.js b/js/foundation/foundation.reveal.js index c2dc697a1..41b4eb165 100644 --- a/js/foundation/foundation.reveal.js +++ b/js/foundation/foundation.reveal.js @@ -66,7 +66,7 @@ $(this.scope) .off('.reveal'); - + $(document) .on('click.fndtn.reveal', this.close_targets(), function (e) { @@ -279,6 +279,8 @@ return el.fadeIn(settings.animation_speed / 2); } + this.locked = false; + return el.show(); }, -- 2.47.2