Mercurial > hg > batmud > maputils
changeset 1757:7f0b0e5dc420
Apparently setting ID and name for form elements to same value is baad.
Firefox (57) at least started to act weirdly.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 19 Oct 2017 19:18:46 +0300 |
parents | da35721afdad |
children | bb9c78c70b1b |
files | colormap.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/colormap.c Thu Oct 19 19:17:58 2017 +0300 +++ b/colormap.c Thu Oct 19 19:18:46 2017 +0300 @@ -318,8 +318,8 @@ "@LOCATIONS@\n" " </select>\n" " <br />\n" - " <input name=\"shide\" id=\"shide\" onClick=\"jsToggleLabels();\" type=\"checkbox\"%s><label for=\"shide\">Labels</label>\n" - " <input name=\"sscroll\" id=\"sscroll\" type=\"checkbox\"%s><label for=\"sscroll\">Smooth scroll</label>\n" + " <input id=\"shide\" onClick=\"jsToggleLabels();\" type=\"checkbox\"%s><label for=\"shide\">Labels</label>\n" + " <input id=\"sscroll\" type=\"checkbox\"%s><label for=\"sscroll\">Smooth scroll</label>\n" " </form>\n" "</div>\n", (1 ? " checked=\"checked\"" : ""),