// fixs highlight search
This commit is contained in:
@@ -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();
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user