changed default action for pushon button
This commit is contained in:
parent
9f391f1a3a
commit
3e36752fc2
|
|
@ -96,7 +96,8 @@ $(document).ready(function() {
|
|||
});
|
||||
updateSwitches_block_{{count}}.push("{{v[0]}}");
|
||||
{% elif (v[1] == "pushon") or (v[1] == "pushoff") %}
|
||||
$('button[id="push_{{v[0]}}_block_{{count}}"]').click(function() {
|
||||
$('button[id="push_{{v[0]}}_block_{{count}}"]').click(function(e) {
|
||||
e.preventDefault();
|
||||
changeSwitch(this, {{v[0]}});
|
||||
});
|
||||
{% elif (v[1] == "setpoint") %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue