diff options
| author | Chris Rebert <[email protected]> | 2014-04-29 15:56:18 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2014-05-07 20:19:40 -0700 |
| commit | bdd822a94cdf2d452e067569e76ca1537dc74d8d (patch) | |
| tree | 836d5b31d0da59628b51b8065e08906c1fb99bcf /docs/assets/js/_src/application.js | |
| parent | 7d0f7e84412ab8018e6e9211f9e6a0f47d1100ce (diff) | |
| download | bootstrap-bdd822a94cdf2d452e067569e76ca1537dc74d8d.tar.xz bootstrap-bdd822a94cdf2d452e067569e76ca1537dc74d8d.zip | |
regenerate minified docs JS & CSS
Diffstat (limited to 'docs/assets/js/_src/application.js')
| -rw-r--r-- | docs/assets/js/_src/application.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/assets/js/_src/application.js b/docs/assets/js/_src/application.js index 655f14612..0a719b1f9 100644 --- a/docs/assets/js/_src/application.js +++ b/docs/assets/js/_src/application.js @@ -58,14 +58,15 @@ var stylesheetLink = $('#bs-theme-stylesheet') var themeBtn = $('#bs-theme-btn') themeBtn.click(function () { - if (stylesheetLink.attr('href')) { - stylesheetLink.attr('href', '') - themeBtn.text('Activate Theme') - } - else { + var href = stylesheetLink.attr('href'); + if (!href || href.indexOf('data') === 0) { stylesheetLink.attr('href', stylesheetLink.attr('data-href')) themeBtn.text('Deactivate Theme') } + else { + stylesheetLink.attr('href', '') + themeBtn.text('Activate Theme') + } }) })(); |
