From: Oliver Kovacs Date: Tue, 21 Jan 2014 16:28:12 +0000 (+0100) Subject: Fix reveal is not closing on backdrop click if animations are off. X-Git-Tag: v5.1.0~29^2~11^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=refs%2Fpull%2F4202%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Fix reveal is not closing on backdrop click if animations are off. --- 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(); },