diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js index 02cc730bd3..a071a855b4 100644 --- a/docs/assets/js/application.js +++ b/docs/assets/js/application.js @@ -106,7 +106,14 @@ $(function () { $('.tooltip-demo.well').tooltip({ selector: "a[rel=tooltip]" }) - $('.tooltip-test').tooltip() + + $('.tooltip-test').tooltip({ + 'z-index': 3000 + }) + + $('.popover-test').popover({ + 'z-index': 3000 + }) // popover demo $("a[rel=popover]") diff --git a/docs/javascript.html b/docs/javascript.html index 24de47157f..6bec3d122a 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -221,7 +221,7 @@

Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem.

Popover in a modal

-

This button should trigger a popover on hover.

+

This button should trigger a popover on hover.

Tooltips in a modal

This link and that link should have tooltips on hover.

@@ -740,6 +740,12 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

Object structure is: delay: { show: 500, hide: 100 }

+ + z-index + number + 1020 + The tooltips z-index value +

Notice Individual tooltip instance options can alternatively be specified through the use of data attributes.

@@ -840,6 +846,12 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

Object structure is: delay: { show: 500, hide: 100 }

+ + z-index + number + 1010 + The popovers z-index value +

Notice Individual popover instance options can alternatively be specified through the use of data attributes.

diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index 6e3ba25da4..ec711a3125 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -156,7 +156,7 @@

Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem.

{{_i}}Popover in a modal{{/i}}

-

{{_i}}This button should trigger a popover on hover.{{/i}}

+

{{_i}}This button should trigger a popover on hover.{{/i}}

{{_i}}Tooltips in a modal{{/i}}

{{_i}}This link and that link should have tooltips on hover.{{/i}}

@@ -675,6 +675,12 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

{{_i}}Object structure is: delay: { show: 500, hide: 100 }{{/i}}

+ + {{_i}}z-index{{/i}} + {{_i}}number{{/i}} + 1020 + The tooltips z-index value +

{{_i}}Notice Individual tooltip instance options can alternatively be specified through the use of data attributes.{{/i}}

@@ -775,6 +781,12 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

{{_i}}Object structure is: delay: { show: 500, hide: 100 }{{/i}}

+ + {{_i}}z-index{{/i}} + {{_i}}number{{/i}} + 1010 + The popovers z-index value +

{{_i}}Notice Individual popover instance options can alternatively be specified through the use of data attributes.{{/i}}

diff --git a/js/bootstrap-tooltip.js b/js/bootstrap-tooltip.js index 21f2311fb2..65f8895aa5 100644 --- a/js/bootstrap-tooltip.js +++ b/js/bootstrap-tooltip.js @@ -145,6 +145,9 @@ break } + debugger + if (this.options['z-index']) tp['z-index'] = this.options['z-index'] + $tip .css(tp) .addClass(placement) @@ -265,6 +268,7 @@ , trigger: 'hover' , title: '' , template: '
' + , 'z-index': false } }( window.jQuery )