Mercurial > hg > batmud > maputils
changeset 1938:ab7fd6ed8587
Cleanup.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 13 Nov 2017 05:37:24 +0200 |
parents | f0311e3a9b44 |
children | e525c390da03 |
files | www/search.js |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/www/search.js Mon Nov 13 05:37:16 2017 +0200 +++ b/www/search.js Mon Nov 13 05:37:24 2017 +0200 @@ -428,8 +428,7 @@ // Get current state of map list for (var i = 0; i < mapList.length; i++) { - var res = mapList[i]; - var elem = document.getElementById("map_"+ res[0]); + var elem = document.getElementById("map_"+ mapList[i][0]); if (first) same = elem.checked; else @@ -447,8 +446,7 @@ // Set it! Bop it! for (var i = 0; i < mapList.length; i++) { - var res = mapList[i]; - var elem = document.getElementById("map_"+ res[0]); + var elem = document.getElementById("map_"+ mapList[i][0]); elem.checked = same; }