aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjan <jan@ruken.pw>2015-12-30 17:45:03 (UTC)
committerjan <jan@ruken.pw>2015-12-30 17:45:03 (UTC)
commit5ffc0f41b9726d0ee97f0b6f7745ba4d2ab00017 (patch)
treec862322a55889e8cf61bd3ef1bfb5d26f4cbe1bb
parentee37b31502bc46527a5db51f73459f5f7946e1b2 (diff)
markieren des suchbegriffes
-rw-r--r--assets/js/search.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/search.js b/assets/js/search.js
index edd181e..5f81eb1 100644
--- a/assets/js/search.js
+++ b/assets/js/search.js
@@ -21,7 +21,7 @@ function doSearch() {
21 document.getElementById("search-results").innerHTML = ''; 21 document.getElementById("search-results").innerHTML = '';
22 return 22 return
23 } 23 }
24 document.getElementById("search-results").innerHTML = xhr.response; 24 document.getElementById("search-results").innerHTML = xhr.response.replace(new RegExp(value, 'g'), "<b>" + value + "</b>");
25 } 25 }
26 } 26 }
27 xhr.open('GET', '/search/gril_instant/' + value, true); 27 xhr.open('GET', '/search/gril_instant/' + value, true);