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:
@@ -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')
|
||||
}
|
||||
})
|
||||
})();
|
||||
|
||||
|
Reference in New Issue
Block a user