Fixed Nudge XHR
This commit is contained in:
parent
93506faaa6
commit
87781b85c4
@ -158,8 +158,8 @@ var SN = { // StatusNet
|
|||||||
alert(errorThrown || textStatus);
|
alert(errorThrown || textStatus);
|
||||||
},
|
},
|
||||||
success: function(data, textStatus) {
|
success: function(data, textStatus) {
|
||||||
form_new = document._importNode($('form', data)[0], true);
|
if (typeof($('form', data)[0]) != 'undefined') {
|
||||||
if (form_new.length > 0) {
|
form_new = document._importNode($('form', data)[0], true);
|
||||||
$('#'+form_id).replaceWith(form_new);
|
$('#'+form_id).replaceWith(form_new);
|
||||||
$('#'+form_new.id).each(function() { SN.U.FormXHR($(this)); });
|
$('#'+form_new.id).each(function() { SN.U.FormXHR($(this)); });
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user