From: Zach Copley Date: Thu, 28 Apr 2011 01:27:42 +0000 (-0700) Subject: Fix syntax error X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d1d530370ddd5443db6a35005ff748a47f092874;p=quix0rs-gnu-social.git Fix syntax error --- 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(); }