diff options
| author | Bryan Braun <[email protected]> | 2015-05-15 00:37:07 -0400 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2015-05-16 09:58:15 +0300 |
| commit | dec2faec3d1ebdf0f72d5814e570ebc453346cde (patch) | |
| tree | 9d6771f1dfcffe5c1f35b266ccbbbb9ad25a5b97 /docs/assets/js/src | |
| parent | c111c291be426c5e91ceb1b8fe506d0df9818a2d (diff) | |
| download | bootstrap-dec2faec3d1ebdf0f72d5814e570ebc453346cde.tar.xz bootstrap-dec2faec3d1ebdf0f72d5814e570ebc453346cde.zip | |
Update Anchor.js and port over the existing styles.
Anchor.js 1.0.0 drops the need to use anchor.css, so we remove it
from the codebase and move any leftover styles over to docs.css.
Closes #16488 by merging it.
Diffstat (limited to 'docs/assets/js/src')
| -rw-r--r-- | docs/assets/js/src/application.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/assets/js/src/application.js b/docs/assets/js/src/application.js index 35f39f6f0..51f42cd05 100644 --- a/docs/assets/js/src/application.js +++ b/docs/assets/js/src/application.js @@ -9,7 +9,7 @@ * details, see http://creativecommons.org/licenses/by/3.0/. */ -/* global ZeroClipboard, addAnchors */ +/* global ZeroClipboard, anchors */ !function ($) { 'use strict'; @@ -178,5 +178,6 @@ ;(function () { 'use strict'; - addAnchors('.bs-docs-section > h1, .bs-docs-section > h2, .bs-docs-section > h3, .bs-docs-section > h4, .bs-docs-section > h5') + anchors.options.placement = 'left'; + anchors.add('.bs-docs-section > h1, .bs-docs-section > h2, .bs-docs-section > h3, .bs-docs-section > h4, .bs-docs-section > h5') })(); |
