]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Corrected tag for Alert JS animation example from <a> to <button>
authornkav <nakavthekar@gmail.com>
Sun, 19 Jan 2014 19:19:20 +0000 (14:19 -0500)
committerChris Rebert <code@rebertia.com>
Mon, 20 Jan 2014 21:46:41 +0000 (13:46 -0800)
Also removed href attribute and added type="button"

docs/javascript.html

index 323f1f684c8f85f80b88da9574fc80ea15491bc3..bdb1021587b9e102ae7fac9fcb8abf044f65c58a 100644 (file)
@@ -1366,7 +1366,7 @@ $('#myPopover').on('hidden.bs.popover', function () {
 
   <h3>Markup</h3>
   <p>Just add <code>data-dismiss="alert"</code> to your close button to automatically give an alert close functionality.</p>
-  {% highlight html %}<a class="close" data-dismiss="alert" href="#" aria-hidden="true">&times;</a>{% endhighlight %}
+  {% highlight html %}<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>{% endhighlight %}
 
   <h3>Methods</h3>