From dab27ac9fd95d17cbc3e02b4e01e09e8b358bd23 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Mon, 2 May 2011 11:55:28 -0700 Subject: [PATCH] Revert "Fix syntax error" This reverts commit d1d530370ddd5443db6a35005ff748a47f092874. --- js/util.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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(); } -- 2.39.5