# HG changeset patch
# User Laure Bourgois <Laure.Bourgois@logilab.fr>
# Date 1226486917 -3600
#      Wed Nov 12 11:48:37 2008 +0100
# Node ID 480ce788c1b16ee598e499bb53a143786fa8cd8c
# Parent  6cab9d22395a31319a86a09e9dd59a4dee70b220
cancel comment

diff --git a/views.py b/views.py
--- a/views.py
+++ b/views.py
@@ -151,9 +151,11 @@
     expected_kwargs = ('commented',)
     
     EDITION_BODY = u"""
+
+    
  <div id="comment%(eid)sSlot">%(attrform)s
  <div id="comment%(eid)sbbar"><button onclick="%(onclick)s" tabindex="%(tabindex1)s">%(validate)s</button>
- <button onclick="hideElement($('comment%(eid)sSlot'))" tabindex="%(tabindex2)s">%(cancel)s</button>
+ <button onclick="javascript:window.history.go(-1)" tabindex="%(tabindex2)s">%(cancel)s</button>
  </div>
 </div>
 """