replace -> replaceWith

darcs-hash:20080918150120-5ed1f-aaa30e8817bc1653fb5c28a6cd7697f960f9ef2c.gz
This commit is contained in:
Evan Prodromou 2008-09-18 11:01:20 -04:00
parent 935e9b8509
commit 0f787d649b

View File

@ -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() {