]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fixed #1822 - Click event propagation isn't stopped when closing reveal modals. 1823/head
authorGavin Ballard <gavin@gavinballard.com>
Mon, 11 Mar 2013 00:01:23 +0000 (11:01 +1100)
committerGavin Ballard <gavin@gavinballard.com>
Mon, 11 Mar 2013 00:01:23 +0000 (11:01 +1100)
js/foundation/foundation.reveal.js

index 2e797b6a869b7a6b2d87985238bd75f7755d3cf2..83f655406de2ff8e78f01c5ae6eb1c80be5756a1 100644 (file)
@@ -64,6 +64,7 @@
           }
         })
         .on('click.fndtn.reveal touchend.click.fndtn.reveal', this.close_targets(), function (e) {
+          e.preventDefault();
           if (!self.locked) {
             self.locked = true;
             self.close.call(self, $(this).closest('.reveal-modal'));