changed default action for pushon button

This commit is contained in:
squandor 2017-01-02 22:23:34 +01:00
parent 9f391f1a3a
commit 3e36752fc2
1 changed files with 2 additions and 1 deletions

View File

@ -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") %}