Gee, maybe I shouldn't try to write DOM code from memory

darcs-hash:20080918140533-5ed1f-429c55bd99e468dc1e9d1ba4c8823f4027e94477.gz
This commit is contained in:
Evan Prodromou 2008-09-18 10:05:33 -04:00
parent 054b4d0be6
commit 7d6c0c28df

View File

@ -70,10 +70,10 @@ $(document).ready(function(){
}}; }};
function addAjaxHidden(form) { function addAjaxHidden(form) {
ajax = document.newElement('input'); ajax = document.createElement('input');
ajax.addAttribute('type', 'hidden'); ajax.setAttribute('type', 'hidden');
ajax.addAttribute('name', 'ajax'); ajax.setAttribute('name', 'ajax');
ajax.addAttribute('value', 1); ajax.setAttribute('value', 1);
form.appendChild(ajax); form.appendChild(ajax);
} }