Skip to content

Commit

Permalink
Remove some unused JS.
Browse files Browse the repository at this point in the history
  • Loading branch information
realityking committed Jun 2, 2015
1 parent 1f4e6b9 commit a38011b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
3 changes: 1 addition & 2 deletions source/javascripts/app/_lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ under the License.
}

function setupLanguages(l) {
var currentLanguage = l[0];
var defaultLanguage = localStorage.getItem("language");

languages = l;
Expand All @@ -81,7 +80,7 @@ under the License.
activateLanguage(language);
return false;
});
window.onpopstate = function(event) {
window.onpopstate = function() {
activateLanguage(window.location.search.substr(1));
};
});
Expand Down
11 changes: 4 additions & 7 deletions source/javascripts/app/_search.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
//= require ../lib/_lunr
//= require ../lib/_jquery.highlight
(function (global) {
(function () {
'use strict';

var $global = $(global);
var content, darkBox, searchResults;
var content, searchResults;
var highlightOpts = { element: 'span', className: 'search-highlight' };

var index = new lunr.Index();
Expand All @@ -31,7 +30,6 @@

function bind() {
content = $('.content');
darkBox = $('.dark-box');
searchResults = $('.search-results');

$('#input-search').on('keyup', search);
Expand All @@ -58,7 +56,7 @@
highlight.call(this);
} else {
searchResults.html('<li></li>');
$('.search-results li').text('No Results Found for "' + this.value + '"');
$('.search-results li').text('No Results Found for "' + this.value + '"');
}
} else {
unhighlight();
Expand All @@ -73,5 +71,4 @@
function unhighlight() {
content.unhighlight(highlightOpts);
}

})(window);
})();

0 comments on commit a38011b

Please sign in to comment.