Commit 373a4a26 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Results list hidden if search returns no results

parent 61152d19
......@@ -59,6 +59,7 @@ function search_submit($values) {
}
//@todo: Show 'no results found' for an empty query.
$noresults = get_string('noresultsfound');
$javascript = <<<JAVASCRIPT
var results = new TableRenderer(
......@@ -78,6 +79,7 @@ function newsearch() {
}
results.statevars.push('query');
results.emptycontent = '{$noresults}';
JAVASCRIPT;
......
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