From 722d3701ac0ff5408af2fc2d076bc5f6d0e3f71e Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Tue, 21 Nov 2017 16:38:11 -0500 Subject: [PATCH] POST not /POST and invert checkbox state before submitting. --- app/www/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/www/index.html b/app/www/index.html index d5183ad..c120e41 100644 --- a/app/www/index.html +++ b/app/www/index.html @@ -408,7 +408,7 @@ } }; web.setDir = function () { - var dir = document.getElementById('dir').checked; + var dir = !document.getElementById('dir').checked; /*$.ajax({ method : 'POST', url : '/dir', @@ -418,7 +418,7 @@ success : web.setDirSuccess });*/ var opts = { - method : '/POST', + method : 'POST', body : { dir : dir} }; fetch('/dir', opts).then(web.setDirSuccess);