From: Zach Copley Date: Mon, 2 May 2011 18:55:28 +0000 (-0700) Subject: Revert "Fix syntax error" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dab27ac9fd95d17cbc3e02b4e01e09e8b358bd23;p=quix0rs-gnu-social.git Revert "Fix syntax error" This reverts commit d1d530370ddd5443db6a35005ff748a47f092874. --- diff --git a/js/util.js b/js/util.js index b983f2e8a6..67d1201579 100644 --- a/js/util.js +++ b/js/util.js @@ -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(); }