use dataType json for ajax posts

This commit is contained in:
mmcw-dev 2017-10-21 22:44:01 -04:00
parent a8b62ea392
commit d2d5458a70
1 changed files with 2 additions and 3 deletions

View File

@ -217,9 +217,8 @@ null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!o.radioValue&&"radio"
$.ajax({ $.ajax({
method : 'POST', method : 'POST',
url : '/dir', url : '/dir',
body : { body : JSON.stringify({ dir : dir}),
dir : dir dataType : 'json',
},
success : web.setDirSuccess success : web.setDirSuccess
}) })
}; };