2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-02 16:04:07 +03: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
+6 -5
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')
}
})
})();