Skip to content
Snippets Groups Projects
Commit 8ae07827 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Fix search for description

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2904 44740490-163a-0410-bde0-09ae8108e29a
parent 04109640
No related branches found
No related tags found
No related merge requests found
...@@ -137,6 +137,7 @@ DiscoJuice.Utils = { ...@@ -137,6 +137,7 @@ DiscoJuice.Utils = {
*/ */
"searchMatch": function(item, term) { "searchMatch": function(item, term) {
if (item.title.toLowerCase().search(term.toLowerCase()) !== -1) return true; if (item.title.toLowerCase().search(term.toLowerCase()) !== -1) return true;
if (item.descr && item.descr.toLowerCase().search(term.toLowerCase()) !== -1) return true;
var key, i, keyword; var key, i, keyword;
if (item.keywords) { if (item.keywords) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment