From 0f787d649b843e5081f6992be46e61531882a204 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 18 Sep 2008 11:01:20 -0400 Subject: [PATCH] replace -> replaceWith darcs-hash:20080918150120-5ed1f-aaa30e8817bc1653fb5c28a6cd7697f960f9ef2c.gz --- js/util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/util.js b/js/util.js index 9112f2becf..636573625e 100644 --- a/js/util.js +++ b/js/util.js @@ -59,14 +59,14 @@ $(document).ready(function(){ success: function(xml) { var new_form = $('form.disfavor', xml).get(0); var id = new_form.id.replace('disfavor', 'favor'); - $('form#'+id).replace(new_form); + $('form#'+id).replaceWith(new_form); }}; var disoptions = {dataType: 'xml', success: function(xml) { var new_form = $('form.favor', xml).get(0); var id = new_form.id.replace('favor', 'disfavor'); - $('form#'+id).replace(new_form); + $('form#'+id).replaceWith(new_form); }}; function addAjaxHidden() {