// fixs highlight search

This commit is contained in:
Kevin Granger
2013-11-06 19:26:22 +01:00
parent 93717e910b
commit 866e7f831b
4 changed files with 9 additions and 6 deletions
+4 -4
View File
@@ -1,6 +1,6 @@
/*
highlight v3
highlight v4
Highlights arbitrary terms.
@@ -37,9 +37,9 @@ jQuery.fn.highlight = function(pat) {
}
return skip;
}
return this.each(function() {
return this.length && pat && pat.length ? this.each(function() {
innerHighlight(this, pat.toUpperCase());
});
}) : this;
};
jQuery.fn.removeHighlight = function() {
@@ -50,4 +50,4 @@ jQuery.fn.removeHighlight = function() {
normalize();
}
}).end();
};
};