search: fix for dissapearing search field text

* Typeahead also stores its query 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>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>