diff options
author | csarven <csarven@controlyourself.ca> | 2008-11-23 16:34:58 -0500 |
---|---|---|
committer | csarven <csarven@controlyourself.ca> | 2008-11-23 16:34:58 -0500 |
commit | e4f65762ccef0232f941c459b037e7fb1e522e2d (patch) | |
tree | 01898e50c1bcc3fc4a31cfd9c83c0027d86ebd3d /js/util.js | |
parent | 3c8b7d0c220f1129dbfeb4c03dd6d4aaab991848 (diff) |
Removed JS alert and minor cleanup
darcs-hash:20081123213458-eefa4-51ef75c757915e5d4eb0dd69fcdcada3b0ccb150.gz
Diffstat (limited to 'js/util.js')
-rw-r--r-- | js/util.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/js/util.js b/js/util.js index 541b4ec0d..e07788c7b 100644 --- a/js/util.js +++ b/js/util.js @@ -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); |