Mercurial > hg > NetworkVis
comparison ismi-python-neo4jrestclient/static/commentaries.html @ 24:eb0be386736f
fixed author search box.
author | casties |
---|---|
date | Thu, 05 Nov 2015 16:36:56 +0100 |
parents | 80010fb9dbce |
children | a6b2a09ea413 |
comparison
equal
deleted
inserted
replaced
23:80010fb9dbce | 24:eb0be386736f |
---|---|
152 } | 152 } |
153 }, "json"); | 153 }, "json"); |
154 return false; | 154 return false; |
155 } | 155 } |
156 function search(query, keep_detail_view) { | 156 function search(query, keep_detail_view) { |
157 if (query == null) { | 157 console.log("search query=", typeof query); |
158 if (query == null || typeof query === "object") { | |
158 query=$("#search").find("input[name=search]").val(); | 159 query=$("#search").find("input[name=search]").val(); |
159 } | 160 } |
160 $.get(backendApiPrefix+"/search?q=" + encodeURIComponent(query), | 161 $.get(backendApiPrefix+"/search?q=" + encodeURIComponent(query), |
161 function (data) { | 162 function (data) { |
162 var t = $("table#results tbody").empty(); | 163 var t = $("table#results tbody").empty(); |