summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) {