Revert "Fix syntax error"

This reverts commit d1d530370d.
This commit is contained in:
Zach Copley 2011-05-02 11:55:28 -07:00
parent 6af7f8cd64
commit dab27ac9fd
1 changed files with 2 additions and 3 deletions

View File

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