OTA PART 2 Setting Page

This commit is contained in:
JonatanRek
2019-10-25 18:48:48 +02:00
parent 66b433950b
commit 1e464e6e53
3 changed files with 31 additions and 10 deletions

View File

@@ -37,4 +37,22 @@ function sendTestNotification(){
console.log("ERROR ", request, error);
}
});
}
}
$( "button[name='deactivateOta']" ).click(function(){
console.log("Didabling ota");
$.ajax({
url: 'ajax',
type: 'POST',
data: {
"ota" : 'X',
"action": 'disable'
},
success: function(data){
console.log(data);
},
error: function (request, status, error) {
console.log("ERROR ", request, error);
}
});
})