From b9bd82b49656e320b623cc3e2c0363c1ffb9e9ad Mon Sep 17 00:00:00 2001 From: fat Date: Fri, 17 May 2013 10:13:22 -0700 Subject: [PATCH 1/3] patch dropdowns for #7118 --- docs/assets/css/bootstrap.css | 9 +++++++++ docs/assets/js/bootstrap-dropdown.js | 6 +++++- docs/assets/js/bootstrap.js | 6 +++++- docs/assets/js/bootstrap.min.js | 2 +- js/bootstrap-dropdown.js | 6 +++++- less/dropdowns.less | 11 +++++++++++ 6 files changed, 36 insertions(+), 4 deletions(-) diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index 2f56af33f3b1..cf3b6bd5fd45 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -3009,6 +3009,15 @@ table th[class*="span"], display: block; } +.dropdown-backdrop { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: 990; +} + .pull-right > .dropdown-menu { right: 0; left: auto; diff --git a/docs/assets/js/bootstrap-dropdown.js b/docs/assets/js/bootstrap-dropdown.js index a1d51519fedb..57b07895677b 100644 --- a/docs/assets/js/bootstrap-dropdown.js +++ b/docs/assets/js/bootstrap-dropdown.js @@ -52,6 +52,10 @@ clearMenus() if (!isActive) { + if ('ontouchstart' in document.documentElement) { + // if mobile we we use a backdrop because click events don't delegate + $(' @@ -216,6 +226,21 @@

Built with Bootstrap.

+ + diff --git a/docs/javascript.html b/docs/javascript.html index f4957d91cf9e..d7fb8fc549c1 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -25,6 +25,16 @@ + @@ -1775,6 +1785,21 @@

Options

+ + diff --git a/docs/scaffolding.html b/docs/scaffolding.html index 87a9bb003157..215620527c68 100644 --- a/docs/scaffolding.html +++ b/docs/scaffolding.html @@ -25,6 +25,16 @@ + @@ -597,6 +607,21 @@

Hidden on...

+ + diff --git a/docs/templates/pages/index.mustache b/docs/templates/pages/index.mustache index 679236bf6e82..e130974cee29 100644 --- a/docs/templates/pages/index.mustache +++ b/docs/templates/pages/index.mustache @@ -3,7 +3,7 @@

{{_i}}Bootstrap{{/i}}

{{_i}}Sleek, intuitive, and powerful front-end framework for faster and easier web development.{{/i}}

- {{_i}}Download Bootstrap{{/i}} + {{_i}}Download Bootstrap{{/i}}

diff --git a/package.json b/package.json index e52483651e9d..32114ab7cb49 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "bootstrap" , "description": "Sleek, intuitive, and powerful front-end framework for faster and easier web development." - , "version": "2.3.1" + , "version": "2.3.2" , "keywords": ["bootstrap", "css"] , "homepage": "http://twitter.github.com/bootstrap/" , "author": "Twitter Inc."