]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Removed JS alert and minor cleanup
authorcsarven <csarven@controlyourself.ca>
Sun, 23 Nov 2008 21:34:58 +0000 (16:34 -0500)
committercsarven <csarven@controlyourself.ca>
Sun, 23 Nov 2008 21:34:58 +0000 (16:34 -0500)
darcs-hash:20081123213458-eefa4-51ef75c757915e5d4eb0dd69fcdcada3b0ccb150.gz

js/util.js

index 541b4ec0dd4863e3d6faec893a8b60e2a638cfa6..e07788c7bf61c760db1090f9b1a6df85a0828fa8 100644 (file)
@@ -56,7 +56,7 @@ $(document).ready(function(){
        // XXX: refactor this code
 
        var favoptions = { dataType: 'xml',
-                                          success: function(xml) { alert("success");var new_form = document._importNode($('form', xml).get(0), true);
+                                          success: function(xml) { var new_form = document._importNode($('form', xml).get(0), true);
                                                                                                var dis = new_form.id;
                                                                                                var fav = dis.replace('disfavor', 'favor');
                                                                                                $('form#'+fav).replaceWith(new_form);
@@ -126,8 +126,7 @@ $(document).ready(function(){
                                                                                                                                                   }
                                                                                                                                                   return true;
                                                                                                                                                 },
-                                          success: function(xml) { 
-                                                                                               if ($(".error", xml).length > 0) {
+                                          success: function(xml) {     if ($(".error", xml).length > 0) {
                                                                                                        var response_error = document._importNode($(".error", xml).get(0), true);
                                                                                                        response_error = response_error.textContent || response_error.innerHTML;
                                                                                                        alert(response_error);