Mercurial > hg > NetworkVis
changeset 24:eb0be386736f
fixed author search box.
author | casties |
---|---|
date | Thu, 05 Nov 2015 16:36:56 +0100 |
parents | 80010fb9dbce |
children | f82512502b31 |
files | ismi-python-neo4jrestclient/static/commentaries.html |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ismi-python-neo4jrestclient/static/commentaries.html Fri Oct 30 15:37:43 2015 +0100 +++ b/ismi-python-neo4jrestclient/static/commentaries.html Thu Nov 05 16:36:56 2015 +0100 @@ -154,7 +154,8 @@ return false; } function search(query, keep_detail_view) { - if (query == null) { + console.log("search query=", typeof query); + if (query == null || typeof query === "object") { query=$("#search").find("input[name=search]").val(); } $.get(backendApiPrefix+"/search?q=" + encodeURIComponent(query),