Fix lint
This commit is contained in:
parent
ac578dff35
commit
db34e0d8c4
1 changed files with 5 additions and 3 deletions
|
@ -1,11 +1,13 @@
|
||||||
$(document).ready(function(){
|
'use strict';
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
var FADE_SETTINGS = {
|
var FADE_SETTINGS = {
|
||||||
duration: 400
|
duration: 400
|
||||||
};
|
};
|
||||||
|
|
||||||
$("input#search").keyup(function() {
|
$('input#search').keyup(function() {
|
||||||
var filter = new RegExp($(this).val(), 'gi');
|
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) {
|
if ($(this).text().search(filter) === -1) {
|
||||||
$(this).fadeOut(FADE_SETTINGS);
|
$(this).fadeOut(FADE_SETTINGS);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue