mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
OTA PART 2 Setting Page
This commit is contained in:
1 parent
66b433950b
commit
1e464e6e53
3 files changed
+31
-10
No files matched your search
@@ -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);
|
||||
}
|
||||
});
|
||||
})
|
||||
Reference in new issue
Block a user