]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
ah, turns out each() stuff is called as a method
authorEvan Prodromou <evan@controlyourself.ca>
Thu, 18 Sep 2008 14:07:56 +0000 (10:07 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Thu, 18 Sep 2008 14:07:56 +0000 (10:07 -0400)
darcs-hash:20080918140756-5ed1f-800912781c9b34d4490cef462ad32a6afa7e799c.gz

js/util.js

index a699f4e90cd027888acaf74f38e0d94d43697792..0f2e365c35627abd87f81965af4bbeb7000d10bd 100644 (file)
@@ -69,12 +69,12 @@ $(document).ready(function(){
                     $('form#'+id).replace(new_form);
                }};
 
-     function addAjaxHidden(form) {
-          ajax = document.createElement('input');
+     function addAjaxHidden() {
+          var ajax = document.createElement('input');
           ajax.setAttribute('type', 'hidden');
           ajax.setAttribute('name', 'ajax');
           ajax.setAttribute('value', 1);
-          form.appendChild(ajax);
+          this.appendChild(ajax);
      }
      
      $("form.favor").ajaxForm(favoptions);