1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-26 05:19:15 +02:00

regenerate minified docs JS & CSS

This commit is contained in:
Chris Rebert
2014-04-29 15:56:18 -07:00
parent 7d0f7e8441
commit bdd822a94c
4 changed files with 9 additions and 8 deletions

View File

@@ -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')
}
})
})();