From: Mark Otto Date: Mon, 9 Mar 2015 15:02:51 +0000 (+0000) Subject: nuke theme toggler js X-Git-Tag: v4.0.0-alpha~348 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edecd2c5f33d98640ee0e7fb56c09c3dc4d36dd9;p=thirdparty%2Fbootstrap.git nuke theme toggler js --- diff --git a/docs/assets/js/src/application.js b/docs/assets/js/src/application.js index df44da5403..4f053cd8dd 100644 --- a/docs/assets/js/src/application.js +++ b/docs/assets/js/src/application.js @@ -32,33 +32,6 @@ // e.preventDefault() // }) - // theme toggler - (function () { - var stylesheetLink = $('#bs-theme-stylesheet') - var themeBtn = $('.bs-docs-theme-toggle') - - var activateTheme = function () { - stylesheetLink.attr('href', stylesheetLink.attr('data-href')) - themeBtn.text('Disable theme preview') - localStorage.setItem('previewTheme', true) - } - - if (localStorage.getItem('previewTheme')) { - activateTheme() - } - - themeBtn.click(function () { - var href = stylesheetLink.attr('href') - if (!href || href.indexOf('data') === 0) { - activateTheme() - } else { - stylesheetLink.attr('href', '') - themeBtn.text('Preview theme') - localStorage.removeItem('previewTheme') - } - }) - }) - // Tooltip and popover demos $('.tooltip-demo').tooltip({ selector: '[data-toggle="tooltip"]',