From b4cd01b4997bb9152143da5d983cb291ec55cbf6 Mon Sep 17 00:00:00 2001 From: "Sam.Hsu" Date: Tue, 10 Sep 2019 10:50:49 +0800 Subject: [PATCH] Device service returns status 200 with empty content as fails Signed-off-by: Sam.Hsu --- web/static/js/pages/devices/device.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/static/js/pages/devices/device.js b/web/static/js/pages/devices/device.js index c4a7b77..d1c72b2 100644 --- a/web/static/js/pages/devices/device.js +++ b/web/static/js/pages/devices/device.js @@ -260,6 +260,7 @@ var deviceModuleBtnGroup = { type:'PUT', contentType:'application/json', data:JSON.stringify(paramBody), + dataType: "text", success:function(data){ $('#device_detail #command_list tbody input[name="reading_value'+command.id+'"]').val("success"); $('#'+command.id+'').prop('disabled',false);