aboutsummaryrefslogtreecommitdiffstats
path: root/python/Dawn/static/wire.js
diff options
context:
space:
mode:
Diffstat (limited to 'python/Dawn/static/wire.js')
-rw-r--r--python/Dawn/static/wire.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/python/Dawn/static/wire.js b/python/Dawn/static/wire.js
index 48f87104..b2d761c6 100644
--- a/python/Dawn/static/wire.js
+++ b/python/Dawn/static/wire.js
@@ -21,7 +21,11 @@ function addWire(direction, wire_data) {
clone.getElementById("btn").id = direction + "-btn";
document.getElementById(direction).appendChild(clone);
for(var key in wire_data) {
- document.getElementById(direction + "-" + key + "-" + count).value = wire_data[key];
+ if( key == "action" ){
+ document.getElementById("action").value = wire_data[key];
+ } else {
+ document.getElementById(direction + "-" + key + "-" + count).value = wire_data[key];
+ }
}
document.getElementById(direction + "-btn").addEventListener("click", addWire(direction));
};