diff options
author | Git <git@what.cd> | 2013-02-24 08:00:18 +0000 |
---|---|---|
committer | Git <git@what.cd> | 2013-02-24 08:00:18 +0000 |
commit | 13b30d96c83f3854888739dc9cc04acaf92335f0 (patch) | |
tree | 5cf886285e414904ddb96fbc6caf2122c9559f06 /static/functions/comments.js | |
parent | 019c241d081b535e38c103a67949ba9756d919b6 (diff) | |
download | Gazelle-13b30d96c83f3854888739dc9cc04acaf92335f0.zip Gazelle-13b30d96c83f3854888739dc9cc04acaf92335f0.tar.gz Gazelle-13b30d96c83f3854888739dc9cc04acaf92335f0.tar.bz2 |
Empty commit
Diffstat (limited to 'static/functions/comments.js')
-rw-r--r-- | static/functions/comments.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/static/functions/comments.js b/static/functions/comments.js index 3d7f09f..c21aaa0 100644 --- a/static/functions/comments.js +++ b/static/functions/comments.js @@ -66,9 +66,12 @@ function Edit_Form(post,key) { } function Cancel_Edit(postid) { - $('#reply_box').toggle(); - $('#bar' + postid).raw().innerHTML = $('#bar' + postid).raw().oldbar; - $('#content' + postid).raw().innerHTML = $('#bar' + postid).raw().cancel; + var answer = confirm("Are you sure you want to cancel?"); + if (answer) { + $('#reply_box').toggle(); + $('#bar' + postid).raw().innerHTML = $('#bar' + postid).raw().oldbar; + $('#content' + postid).raw().innerHTML = $('#bar' + postid).raw().cancel; + } } function Preview_Edit(postid) { |