diff --git a/functions/ListOutput.fnc.php b/functions/ListOutput.fnc.php index 3755193b3..5ee57f028 100644 --- a/functions/ListOutput.fnc.php +++ b/functions/ListOutput.fnc.php @@ -377,12 +377,16 @@ function ListOutput( $result, $column_names, $singular = '.', $plural = '.', $li // Do not remove search URL due to document.URL = 'index.php' in old IE browsers. $search_URL = PreparePHP_SELF( $_REQUEST, [ 'LO_search' ] ); + $onkeypress_js = 'LOSearch(event, this.value, ' . json_encode( $search_URL ) . ');'; + + $onclick_js = 'LOSearch(event, $(\'#LO_search\').val(), ' . json_encode( $search_URL ) . ');'; + echo ' + '" placeholder="' . AttrEscape( _( 'Search' ) ) . + '" onkeypress="' . AttrEscape( $onkeypress_js ) . '" autocomplete="off" /> ';