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({
method : 'POST',
url : '/dir',
body : {
dir : dir
},
body : JSON.stringify({ dir : dir}),
dataType : 'json',
success : web.setDirSuccess
})
};