1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

add some crap

This commit is contained in:
fat 2013-08-17 15:54:42 -07:00
parent 8b5314096f
commit d754e6564d
2 changed files with 6 additions and 6 deletions

View file

@ -543,10 +543,10 @@ $('#myDropdown').on('show.bs.dropdown', function () {
<li class="dropdown"> <li class="dropdown">
<a href="#" id="navbarDrop1" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> <a href="#" id="navbarDrop1" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
<ul class="dropdown-menu" role="menu" aria-labelledby="navbarDrop1"> <ul class="dropdown-menu" role="menu" aria-labelledby="navbarDrop1">
<li><a href="#one">one</a></li> <li><a href="#one" tabindex="-1">one</a></li>
<li><a href="#two">two</a></li> <li><a href="#two" tabindex="-1">two</a></li>
<li class="divider"></li> <li class="divider"></li>
<li><a href="#three">three</a></li> <li><a href="#three" tabindex="-1">three</a></li>
</ul> </ul>
</li> </li>
</ul> </ul>
@ -665,8 +665,8 @@ $('#myScrollspy').on('activate.bs.scrollspy', function () {
<li class="dropdown"> <li class="dropdown">
<a href="#" id="myTabDrop1" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> <a href="#" id="myTabDrop1" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
<ul class="dropdown-menu" role="menu" aria-labelledby="myTabDrop1"> <ul class="dropdown-menu" role="menu" aria-labelledby="myTabDrop1">
<li><a href="#dropdown1" data-toggle="tab">@fat</a></li> <li><a href="#dropdown1" tabindex="-1" data-toggle="tab">@fat</a></li>
<li><a href="#dropdown2" data-toggle="tab">@mdo</a></li> <li><a href="#dropdown2" tabindex="-1" data-toggle="tab">@mdo</a></li>
</ul> </ul>
</li> </li>
</ul> </ul>

View file

@ -60,7 +60,7 @@
} }
Dropdown.prototype.keydown = function (e) { Dropdown.prototype.keydown = function (e) {
if (!/(9|38|40|27)/.test(e.keyCode)) return if (!/(38|40|27)/.test(e.keyCode)) return
var $this = $(this) var $this = $(this)