diff options
author | Marius Mathiesen <marius@shortcut.no> | 2009-10-14 13:25:31 +0200 |
---|---|---|
committer | Johan Sørensen <johan@johansorensen.com> | 2009-11-04 15:23:26 +0100 |
commit | 9a948f2834d8cfb84ce06da07eb43b67c35d107b (patch) | |
tree | 4dfb7581d897cb847f5968eb3bb778ac6332f35c /public/javascripts/application.js | |
parent | 18161cd65b33604c543ab84ce975d6c17ca1d7d2 (diff) | |
download | gitorious-mainline-outdated-9a948f2834d8cfb84ce06da07eb43b67c35d107b.zip gitorious-mainline-outdated-9a948f2834d8cfb84ce06da07eb43b67c35d107b.tar.gz gitorious-mainline-outdated-9a948f2834d8cfb84ce06da07eb43b67c35d107b.tar.bz2 |
Give a visual clue while the comment is being saved
Diffstat (limited to 'public/javascripts/application.js')
-rw-r--r-- | public/javascripts/application.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 0ba6142..9f2a5cd 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -1006,6 +1006,7 @@ Gitorious.CommentForm = function(path){ commentContainer.find("#comment_body").focus(); var zeForm = commentContainer.find("form"); zeForm.submit(function(){ + zeForm.find(".progress").show("fast"); jQuery.ajax({ "url": $(this).attr("action"), "data": $(this).serialize(), @@ -1016,6 +1017,7 @@ Gitorious.CommentForm = function(path){ }, "error": function(xhr, statusText, errorThrown) { var errorDisplay = $(zeForm).find(".error"); + zeForm.find(".progress").hide("fast"); errorDisplay.text("Please make sure your comment is valid"); errorDisplay.show("fast"); } |