diff options
author | Sarven Capadisli <csarven@controlyourself.ca> | 2008-12-11 17:58:08 -0500 |
---|---|---|
committer | Sarven Capadisli <csarven@controlyourself.ca> | 2008-12-11 17:58:08 -0500 |
commit | 0910a8915b590d3075ede3e1a3f5ec68e18ca829 (patch) | |
tree | ff9fa975aee57c0212bacdc980435bf6c7a4a9ca | |
parent | 40fd5d2f8b6e228cf8a27a766c90c496c0962e7f (diff) |
Alerting the direct message XHR response
darcs-hash:20081211225808-efd22-7f21b4588aad028766516f76173cf62cdf560855.gz
-rw-r--r-- | js/util.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/js/util.js b/js/util.js index 404b9d6c1..ef07464fb 100644 --- a/js/util.js +++ b/js/util.js @@ -149,13 +149,20 @@ $(document).ready(function(){ response_error = response_error.textContent || response_error.innerHTML; alert(response_error); } + else if ($(".command_results", xml).length > 0) { + var command_results = document._importNode($(".command_results", xml).get(0), true); + command_results = command_results.textContent || command_results.innerHTML; + alert(command_results); + } else { $("#notices").prepend(document._importNode($("li", xml).get(0), true)); $("#status_textarea").val(""); counter(); $(".notice_single:first").css({display:"none"}); $(".notice_single:first").fadeIn(2500); + } + $("#status_form input[type=submit]").removeAttr("disabled"); $("#status_form input[type=submit]").removeClass("disabled"); } |