]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Revert "Fix syntax error"
authorZach Copley <zach@status.net>
Mon, 2 May 2011 18:55:28 +0000 (11:55 -0700)
committerZach Copley <zach@status.net>
Mon, 2 May 2011 18:55:28 +0000 (11:55 -0700)
This reverts commit d1d530370ddd5443db6a35005ff748a47f092874.

js/util.js

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