]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix syntax error
authorZach Copley <zach@status.net>
Thu, 28 Apr 2011 01:27:42 +0000 (18:27 -0700)
committerZach Copley <zach@status.net>
Thu, 28 Apr 2011 01:27:42 +0000 (18:27 -0700)
js/util.js

index 67d1201579ade9294348b97be476988a57c5671d..b983f2e8a64875e4c44bc34b64e86495e5c34204 100644 (file)
@@ -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();
                         }