// 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
File diff suppressed because one or more lines are too long
@@ -20,6 +20,9 @@
background-color: white
border-color: #ccc!important
.highlight
background-color: #FFFF00
.badge
background-color: $secondary-color
&.badge-success
@@ -25,7 +25,7 @@
<script type="text/javascript">
$(function() {
$('body').highlight('{$query}');
$('#content .panel').highlight('{$query}');
});
</script>
+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();
};
};