From d1d530370ddd5443db6a35005ff748a47f092874 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Wed, 27 Apr 2011 18:27:42 -0700 Subject: [PATCH] Fix syntax error --- js/util.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/util.js b/js/util.js index 67d1201579..b983f2e8a6 100644 --- a/js/util.js +++ b/js/util.js @@ -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(); } -- 2.39.5