Mercurial > hg > batmud > maputils
changeset 2113:282f84c10f97
Adjust location search results parsing to match changes in the server end.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 10 Sep 2019 17:52:56 +0300 |
parents | 11f0f408fd0f |
children | 2b9b9e0f89b3 |
files | www/search.js |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/www/search.js Tue Sep 10 17:52:24 2019 +0300 +++ b/www/search.js Tue Sep 10 17:52:56 2019 +0300 @@ -397,7 +397,7 @@ else if (evt.data.substr(0, 7) == "RESULT:" && evt.data.length >= 9) { - var results = mapValidateJSON(evt.data.substr(7), 2, 8); + var results = mapValidateJSON(evt.data.substr(7), 2, 9); var str; if (Array.isArray(results) && results.length > 0) @@ -413,7 +413,7 @@ var res = results[i]; var flags = res[5]; var nname = res[6]; - var names = res[7]; + var names = res[8]; str += "<div class=\"result\" title=\""+ names.join(" | ") +"\">"+ "<a target=\"_blank\" href=\""+ res[0] +".html#loc"+