parent
6af7f8cd64
commit
dab27ac9fd
@ -273,15 +273,14 @@ var SN = { // StatusNet
|
|||||||
},
|
},
|
||||||
success: function(data, textStatus) {
|
success: function(data, textStatus) {
|
||||||
if (typeof($('form', data)[0]) != 'undefined') {
|
if (typeof($('form', data)[0]) != 'undefined') {
|
||||||
var form_new = $('form', $(data).children());
|
form_new = $('form', $(data).children());
|
||||||
form.replaceWith(form_new);
|
form.replaceWith(form_new);
|
||||||
if (onSuccess) {
|
if (onSuccess) {
|
||||||
onSuccess();
|
onSuccess();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (typeof($('p', data)[0]) != 'undefined') {
|
else if (typeof($('p', data)[0]) != 'undefined') {
|
||||||
var p_new = $('p', $(data).children());
|
form.replaceWith$('form', $(data).children());
|
||||||
form.replaceWith(p_new);
|
|
||||||
if (onSuccess) {
|
if (onSuccess) {
|
||||||
onSuccess();
|
onSuccess();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user