Commit 48bbad50 authored by Romain Courteaud's avatar Romain Courteaud

Do not highlight empty string

parent 11ead93e
No related merge requests found
......@@ -12,7 +12,7 @@
</item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts07528717.77</string> </value>
<value> <string>ts09346482.3</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
......@@ -255,9 +255,11 @@ function highlight_search_word(){\n
// multiple words\n
search_word_list = search_text.split("%20")\n
for(var i=0; i<search_word_list.length; i++) {\n
if (search_word_list[i] != \'\') {\n
document_body.highlight(search_word_list[i], "highlight")\n
headline.highlight(search_word_list[i], "highlight")\n
title.highlight(search_word_list[i], "highlight")\n
}\n
\n
}\n
}\n
......@@ -275,7 +277,7 @@ $(document).ready(initialize_form);\n
</item>
<item>
<key> <string>size</string> </key>
<value> <int>8364</int> </value>
<value> <int>8417</int> </value>
</item>
<item>
<key> <string>title</string> </key>
......
1809
\ No newline at end of file
1810
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment