Ajax Refactor/Oprimalization

This commit is contained in:
JonatanRek
2019-10-09 19:23:20 +02:00
parent 00bccd5224
commit cb4d8a89a0
3 changed files with 95 additions and 153 deletions

View File

@@ -1,7 +1,7 @@
<?php
$action = "";
if ($SUBDEVICE['type'] == 'on/off') {
$action = 'onClick="ajaxPost(\'ajax\',{subDevice_id:\'' . $SUBDEVICEID . '\'}, this);"';
$action = 'onClick="ajaxPost(\'ajax\',{subDevice_id:\'' . $SUBDEVICEID . '\', action:\'change\'}, this);"';
}
//neaktivní zařízení is-inactive
?>

View File

@@ -1,4 +1,3 @@
<?php //TODO DOD2LAT UKL8D8N9?>
<div class="modal-container modal-container-hiden" id="modal-setting-<?php echo $SCENEID ?>">
<div class="modal">
<div class="close">