summaryrefslogtreecommitdiffstats
path: root/htdocs
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2013-12-26 01:18:15 +0100
committermanuel <manuel@mausz.at>2013-12-26 01:18:15 +0100
commit5b3b6e88542d811a2799320c4d0da2e4ea040b77 (patch)
tree2084104fe947f426d64a48182cd42f9dde437d08 /htdocs
parent6af233354bdf42918b45a4a79831c8e54173300f (diff)
downloadwebiopi-5b3b6e88542d811a2799320c4d0da2e4ea040b77.tar.gz
webiopi-5b3b6e88542d811a2799320c4d0da2e4ea040b77.tar.bz2
webiopi-5b3b6e88542d811a2799320c4d0da2e4ea040b77.zip
always trigger updateValue event
Diffstat (limited to 'htdocs')
-rw-r--r--htdocs/webiopi.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/htdocs/webiopi.js b/htdocs/webiopi.js
index 568bbb0..2d4e90f 100644
--- a/htdocs/webiopi.js
+++ b/htdocs/webiopi.js
@@ -215,8 +215,7 @@ WebIOPi.prototype.updateValue = function (gpio, value) {
215 w().GPIO[gpio].value = value; 215 w().GPIO[gpio].value = value;
216 var style = (value == 1) ? "HIGH" : "LOW"; 216 var style = (value == 1) ? "HIGH" : "LOW";
217 $("#gpio"+gpio).attr("class", style); 217 $("#gpio"+gpio).attr("class", style);
218 if (old_value != value) 218 $("#gpio"+gpio).trigger("updateValue", [ gpio, old_value, value ])
219 $("#gpio"+gpio).trigger("updateValue", [ gpio, old_value, value ])
220} 219}
221 220
222WebIOPi.prototype.updateFunction = function (gpio, func) { 221WebIOPi.prototype.updateFunction = function (gpio, func) {