1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-25 21:09:06 +02:00

move js plugins to root dir, begin writing tests, and change modal plugin to be more boss like

This commit is contained in:
Jacob Thornton
2011-09-09 22:47:49 -07:00
parent df3ca4d94a
commit 5f4e30ed1d
22 changed files with 1997 additions and 83 deletions

View File

@@ -1,26 +0,0 @@
(function( $ ){
/* DROPDOWN PLUGIN DEFINITION
* ========================== */
var selector = 'a.menu, .dropdown-toggle'
function clearMenus() {
$(selector).parent('li').removeClass('open')
}
$(function () {
$('body').bind("click", clearMenus)
})
$.fn.dropdown = function ( options ) {
return this.each(function () {
$(this).delegate(selector, 'click', function (e) {
clearMenus()
$(this).parent('li').toggleClass('open')
return false
})
})
}
})( jQuery || ender )