Termostatic radiator head Preparation #Feature

This commit is contained in:
jonatanrek committed 2020-03-30 08:56:06 +02:00
1 parent 0593bf09dd
commit e22d98cf6a
4 files changed
+186 -150

No files matched your search

+18
View File
@@ -85,5 +85,23 @@
$partial = new Partial('footer');
$partial->render();
?>
<script>
$(document).on('keyup mouseup', '#value_control', function(event) {
$.ajax({
url: 'ajax',
type: 'POST',
//TODO: GET Attribute from ID
data: { subDevice_id : '46', action : 'set', value: this.value},
success: function(msg){
console.log("message");
console.log(msg);
},
error: function (request, status, error) {
console.log('0');
}
});
console.log(this.value);
});
</script>
</body>
</html>