Ajax Refactor/Oprimalization

This commit is contained in:
jonatanrek committed 2019-10-09 19:23:52 +02:00
1 parent 00bccd5224
commit cb4d8a89a0
3 files changed
+95 -153

No files matched your search

+1 -1
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
?>