Merge branch 'bug_9419' into 3.12-master

This commit is contained in:
Jared Camins-Esakov 2013-03-30 08:03:11 -04:00
commit b208af37c6
2 changed files with 8 additions and 4 deletions

View file

@ -134,7 +134,9 @@ $('#sort_by').change(function() {
function highlightOn() {
var x;
for (x in q_array) {
toHighlight.highlight(q_array[x]);
if ( q_array[x].length > 0 ) {
toHighlight.highlight(q_array[x]);
}
}
$(".highlight_toggle").toggle();
}[% END %]

View file

@ -95,9 +95,11 @@ function highlightOff() {
function highlightOn() {
var x;
for (x in q_array) {
$(".title").highlight(q_array[x]);
$(".author").highlight(q_array[x]);
$(".results_summary").highlight(q_array[x]);
if ( q_array[x].length > 0 ) {
$(".title").highlight(q_array[x]);
$(".author").highlight(q_array[x]);
$(".results_summary").highlight(q_array[x]);
}
}
$(".highlight_toggle").toggle();
}