search: fix for dissapearing search field text

* Typeahead stores it's query also internaly
  in a variable, and resets to it on blur event
  of the input field.
  The query is normally updated when the text
  is typed by user. Using javascript it needs
  to be updated manually.

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>