]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Gee, maybe I shouldn't try to write DOM code from memory
authorEvan Prodromou <evan@controlyourself.ca>
Thu, 18 Sep 2008 14:05:33 +0000 (10:05 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Thu, 18 Sep 2008 14:05:33 +0000 (10:05 -0400)
darcs-hash:20080918140533-5ed1f-429c55bd99e468dc1e9d1ba4c8823f4027e94477.gz

js/util.js

index 9f66e393ca55d88f46401d30ea2648827638e56a..a699f4e90cd027888acaf74f38e0d94d43697792 100644 (file)
@@ -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);
      }