diff options
| author | Mark Otto <[email protected]> | 2015-05-27 15:49:55 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2015-05-27 15:49:55 -0700 |
| commit | 663576a7ae77fb3f6143ce59ea16511cdaf8e9c3 (patch) | |
| tree | 4c205f99d57e85308abc01ee431b6008bdf8c641 /docs/assets/js/src | |
| parent | bd971c49b0883452af2e1278a8628eaf351504a1 (diff) | |
| parent | 3fe894ba3620c7e5d2e040f83948488d1911aedc (diff) | |
| download | bootstrap-663576a7ae77fb3f6143ce59ea16511cdaf8e9c3.tar.xz bootstrap-663576a7ae77fb3f6143ce59ea16511cdaf8e9c3.zip | |
Merge branch 'v4' of https://github.com/twbs/derpstrap into v4
Conflicts:
dist/css/bootstrap.css
dist/css/bootstrap.css.map
docs/assets/css/docs.min.css
Diffstat (limited to 'docs/assets/js/src')
| -rw-r--r-- | docs/assets/js/src/application.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/docs/assets/js/src/application.js b/docs/assets/js/src/application.js index 0f840133a..bb65df532 100644 --- a/docs/assets/js/src/application.js +++ b/docs/assets/js/src/application.js @@ -51,7 +51,7 @@ // Button state demo $('#loading-example-btn').on('click', function () { - var btn = $(this) + var $btn = $(this) btn.button('loading') setTimeout(function () { btn.button('reset') @@ -60,11 +60,11 @@ // Modal relatedTarget demo $('#exampleModal').on('show.bs.modal', function (event) { - var button = $(event.relatedTarget) // Button that triggered the modal + var $button = $(event.relatedTarget) // Button that triggered the modal var recipient = button.data('whatever') // Extract info from data-* attributes // If necessary, you could initiate an AJAX request here (and then do the updating in a callback). // Update the modal's content. We'll use jQuery here, but you could use a data binding library or other methods instead. - var modal = $(this) + var $modal = $(this) modal.find('.modal-title').text('New message to ' + recipient) modal.find('.modal-body input').val(recipient) }) @@ -89,7 +89,7 @@ $(this).before(btnHtml) }) var zeroClipboard = new ZeroClipboard($('.btn-clipboard')) - var htmlBridge = $('#global-zeroclipboard-html-bridge') + var $htmlBridge = $('#global-zeroclipboard-html-bridge') // Handlers for ZeroClipboard zeroClipboard.on('load', function () { @@ -129,5 +129,7 @@ ;(function () { 'use strict'; + + addAnchors('.bd-container > h1, .bd-container > h2, .bd-container > h3, .bd-container > h4, .bd-container > h5'); })(); |
