forked from GNUsocial/gnu-social
Fix syntax error
This commit is contained in:
parent
8cc5c175da
commit
d1d530370d
@ -273,14 +273,15 @@ var SN = { // StatusNet
|
|||||||
},
|
},
|
||||||
success: function(data, textStatus) {
|
success: function(data, textStatus) {
|
||||||
if (typeof($('form', data)[0]) != 'undefined') {
|
if (typeof($('form', data)[0]) != 'undefined') {
|
||||||
form_new = $('form', $(data).children());
|
var 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') {
|
||||||
form.replaceWith$('form', $(data).children());
|
var p_new = $('p', $(data).children());
|
||||||
|
form.replaceWith(p_new);
|
||||||
if (onSuccess) {
|
if (onSuccess) {
|
||||||
onSuccess();
|
onSuccess();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user