mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Termostatic radiator head Preparation #Feature
This commit is contained in:
1 parent
0593bf09dd
commit
e22d98cf6a
4 files changed
+186
-150
No files matched your search
@@ -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>
|
||||
Reference in new issue
Block a user