diff --git a/dist/css/bootstrap-theme.css.map b/dist/css/bootstrap-theme.css.map index 22cdbb841..286992e83 100644 Binary files a/dist/css/bootstrap-theme.css.map and b/dist/css/bootstrap-theme.css.map differ diff --git a/dist/css/bootstrap.css.map b/dist/css/bootstrap.css.map index 6fdd68b01..fc2b34277 100644 Binary files a/dist/css/bootstrap.css.map and b/dist/css/bootstrap.css.map differ diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js index 1a92aaf02..678c6eace 100644 --- a/docs/assets/js/application.js +++ b/docs/assets/js/application.js @@ -85,7 +85,12 @@ }) // popover demo - $('[data-toggle=popover]').popover() + $('.bs-docs-popover').popover() + + // Popover dismiss on next click + $('.bs-docs-popover-dismiss').popover({ + trigger: 'focus' + }) // button state demo $('#loading-example-btn') diff --git a/docs/assets/js/docs.min.js b/docs/assets/js/docs.min.js index c94f63c59..980879fe5 100644 --- a/docs/assets/js/docs.min.js +++ b/docs/assets/js/docs.min.js @@ -13,4 +13,4 @@ var Holder=Holder||{};!function(a,b){function c(a,b,c){b=parseInt(b,10),a=parseI * Licensed under the Creative Commons Attribution 3.0 Unported License. For * details, see http://creativecommons.org/licenses/by/3.0/. */ -!function(a){a(function(){if(navigator.userAgent.match(/IEMobile\/10\.0/)){var b=document.createElement("style");b.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")),document.querySelector("head").appendChild(b)}{var c=a(window),d=a(document.body);a(".navbar").outerHeight(!0)+10}d.scrollspy({target:".bs-docs-sidebar"}),c.on("load",function(){d.scrollspy("refresh")}),a(".bs-docs-container [href=#]").click(function(a){a.preventDefault()}),setTimeout(function(){var b=a(".bs-docs-sidebar");b.affix({offset:{top:function(){var c=b.offset().top,d=parseInt(b.children(0).css("margin-top"),10),e=a(".bs-docs-nav").height();return this.top=c-e-d},bottom:function(){return this.bottom=a(".bs-docs-footer").outerHeight(!0)}}})},100),setTimeout(function(){a(".bs-top").affix()},100),a(".tooltip-demo").tooltip({selector:"[data-toggle=tooltip]",container:"body"}),a(".tooltip-test").tooltip(),a(".popover-test").popover(),a(".bs-docs-navbar").tooltip({selector:"a[data-toggle=tooltip]",container:".bs-docs-navbar .nav"}),a("[data-toggle=popover]").popover(),a("#loading-example-btn").click(function(){var b=a(this);b.button("loading"),setTimeout(function(){b.button("reset")},3e3)})})}(jQuery); \ No newline at end of file +!function(a){a(function(){if(navigator.userAgent.match(/IEMobile\/10\.0/)){var b=document.createElement("style");b.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")),document.querySelector("head").appendChild(b)}{var c=a(window),d=a(document.body);a(".navbar").outerHeight(!0)+10}d.scrollspy({target:".bs-docs-sidebar"}),c.on("load",function(){d.scrollspy("refresh")}),a(".bs-docs-container [href=#]").click(function(a){a.preventDefault()}),setTimeout(function(){var b=a(".bs-docs-sidebar");b.affix({offset:{top:function(){var c=b.offset().top,d=parseInt(b.children(0).css("margin-top"),10),e=a(".bs-docs-nav").height();return this.top=c-e-d},bottom:function(){return this.bottom=a(".bs-docs-footer").outerHeight(!0)}}})},100),setTimeout(function(){a(".bs-top").affix()},100),a(".tooltip-demo").tooltip({selector:"[data-toggle=tooltip]",container:"body"}),a(".tooltip-test").tooltip(),a(".popover-test").popover(),a(".bs-docs-navbar").tooltip({selector:"a[data-toggle=tooltip]",container:".bs-docs-navbar .nav"}),a(".bs-docs-popover").popover(),a(".bs-docs-popover-dismiss").popover({trigger:"focus"}),a("#loading-example-btn").click(function(){var b=a(this);b.button("loading"),setTimeout(function(){b.button("reset")},3e3)})})}(jQuery); \ No newline at end of file diff --git a/docs/dist/css/bootstrap-theme.css.map b/docs/dist/css/bootstrap-theme.css.map index 22cdbb841..286992e83 100644 Binary files a/docs/dist/css/bootstrap-theme.css.map and b/docs/dist/css/bootstrap-theme.css.map differ diff --git a/docs/dist/css/bootstrap.css.map b/docs/dist/css/bootstrap.css.map index 6fdd68b01..fc2b34277 100644 Binary files a/docs/dist/css/bootstrap.css.map and b/docs/dist/css/bootstrap.css.map differ diff --git a/docs/javascript.html b/docs/javascript.html index bf5944fcb..48e07485a 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -1101,6 +1101,8 @@ $('#myTooltip').on('hidden.bs.tooltip', function () { {% endhighlight %} + +
Use the focus trigger to dismiss popovers on their next click.