From 4520daac3e2e58c6bd0bdc93cef964ee22be9f37 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 18 Sep 2008 10:07:56 -0400 Subject: ah, turns out each() stuff is called as a method darcs-hash:20080918140756-5ed1f-800912781c9b34d4490cef462ad32a6afa7e799c.gz --- js/util.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/util.js b/js/util.js index a699f4e90..0f2e365c3 100644 --- a/js/util.js +++ b/js/util.js @@ -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); -- cgit v1.2.3-54-g00ecf