From d2d5458a707b5c30b8eb51d330de60036c670f70 Mon Sep 17 00:00:00 2001 From: mmcw-dev Date: Sat, 21 Oct 2017 22:44:01 -0400 Subject: [PATCH] use dataType json for ajax posts --- app/www/index.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/www/index.html b/app/www/index.html index 8d08c1c..9226230 100644 --- a/app/www/index.html +++ b/app/www/index.html @@ -217,9 +217,8 @@ null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!o.radioValue&&"radio" $.ajax({ method : 'POST', url : '/dir', - body : { - dir : dir - }, + body : JSON.stringify({ dir : dir}), + dataType : 'json', success : web.setDirSuccess }) };