diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2008-09-18 10:05:33 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2008-09-18 10:05:33 -0400 |
commit | 7d6c0c28df842a170c2b7587560c857143822eb9 (patch) | |
tree | 53223eb93a7ad839bd337c5ea25a68d4b8111dfc | |
parent | 054b4d0be6f3d524a602d787380d9da5986c1f9f (diff) |
Gee, maybe I shouldn't try to write DOM code from memory
darcs-hash:20080918140533-5ed1f-429c55bd99e468dc1e9d1ba4c8823f4027e94477.gz
-rw-r--r-- | js/util.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/util.js b/js/util.js index 9f66e393c..a699f4e90 100644 --- a/js/util.js +++ b/js/util.js @@ -70,10 +70,10 @@ $(document).ready(function(){ }}; function addAjaxHidden(form) { - ajax = document.newElement('input'); - ajax.addAttribute('type', 'hidden'); - ajax.addAttribute('name', 'ajax'); - ajax.addAttribute('value', 1); + ajax = document.createElement('input'); + ajax.setAttribute('type', 'hidden'); + ajax.setAttribute('name', 'ajax'); + ajax.setAttribute('value', 1); form.appendChild(ajax); } |