diff --git a/static/src/js/search.js b/static/src/js/search.js index 534fe1a..58a8354 100644 --- a/static/src/js/search.js +++ b/static/src/js/search.js @@ -1,11 +1,13 @@ -$(document).ready(function(){ +'use strict'; + +$(document).ready(function() { var FADE_SETTINGS = { duration: 400 }; - $("input#search").keyup(function() { + $('input#search').keyup(function() { var filter = new RegExp($(this).val(), 'gi'); - $("div.search-results > div").each(function(){ + $('div.search-results > div').each(function() { if ($(this).text().search(filter) === -1) { $(this).fadeOut(FADE_SETTINGS); } else {