]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Update anchor tag with required "data-reveal" 4156/head
authorAlessandro Loffredo <cyberalexgm@gmail.com>
Wed, 15 Jan 2014 14:25:05 +0000 (15:25 +0100)
committerAlessandro Loffredo <cyberalexgm@gmail.com>
Wed, 15 Jan 2014 14:25:05 +0000 (15:25 +0100)
As described here:
http://foundation.zurb.com/forum/posts/258-reveal-problem-with-foundation-5
"data-reveal" is required to have reveal plugin working properly. This example works nice as is but if you have your buttons (anchors) loaded with jQuery (DOM update after document ready) it will not work.
Let's save devs time with this tip in the documentation.
Thanks!

doc/includes/reveal/examples_reveal_data.html

index 1b13fb80c5e8e0b5c139104a5dcbc999d31902f0..9bcbc7371a99e19df65e2f88e5caf7311a681610 100644 (file)
@@ -1,5 +1,5 @@
 {{#markdown}}
 ```html
-<a href="#" data-reveal-id="myModal">Click Me For A Modal</a>
+<a href="#" data-reveal-id="myModal" data-reveal>Click Me For A Modal</a>
 ```
-{{/markdown}}
\ No newline at end of file
+{{/markdown}}