From 5ffc0f41b9726d0ee97f0b6f7745ba4d2ab00017 Mon Sep 17 00:00:00 2001 From: jan Date: Wed, 30 Dec 2015 18:45:03 +0100 Subject: markieren des suchbegriffes 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() { document.getElementById("search-results").innerHTML = ''; return } - document.getElementById("search-results").innerHTML = xhr.response; + document.getElementById("search-results").innerHTML = xhr.response.replace(new RegExp(value, 'g'), "" + value + ""); } } xhr.open('GET', '/search/gril_instant/' + value, true); -- cgit v0.10.1