Fix syntax error

This commit is contained in:
Zach Copley 2011-04-27 18:27:42 -07:00
parent 8cc5c175da
commit d1d530370d
1 changed files with 3 additions and 2 deletions

View File

@ -273,14 +273,15 @@ var SN = { // StatusNet
},
success: function(data, textStatus) {
if (typeof($('form', data)[0]) != 'undefined') {
form_new = $('form', $(data).children());
var form_new = $('form', $(data).children());
form.replaceWith(form_new);
if (onSuccess) {
onSuccess();
}
}
else if (typeof($('p', data)[0]) != 'undefined') {
form.replaceWith$('form', $(data).children());
var p_new = $('p', $(data).children());
form.replaceWith(p_new);
if (onSuccess) {
onSuccess();
}