forked from GNUsocial/gnu-social
replace -> replaceWith
darcs-hash:20080918150120-5ed1f-aaa30e8817bc1653fb5c28a6cd7697f960f9ef2c.gz
This commit is contained in:
parent
935e9b8509
commit
0f787d649b
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user