]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
nuke theme toggler js
authorMark Otto <markdotto@gmail.com>
Mon, 9 Mar 2015 15:02:51 +0000 (15:02 +0000)
committerMark Otto <markdotto@gmail.com>
Mon, 9 Mar 2015 15:02:51 +0000 (15:02 +0000)
docs/assets/js/src/application.js

index df44da5403e27c30a3e14c95cf4560e1c7518cea..4f053cd8dda4488821951ef74e7b72cbe1fea9c8 100644 (file)
     //   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"]',