diff --git a/static/main.js b/static/main.js index 3a07e00..52872ad 100644 --- a/static/main.js +++ b/static/main.js @@ -84,10 +84,10 @@ function JStuff(query) } this.value = function(value) { - return this.all(function(node, value) { + return this.all(function(node, val) { if (node.value) { - if (value) - node.value = value; + if (typeof (val) !== 'undefined') + node.value = val; return node.value; } return null;