summaryrefslogtreecommitdiff
path: root/templates/base.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
index ba3b06d..90d516e 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -43,6 +43,12 @@
$(function() {
prettyPrint();
$(".submitter").submitter()
+ $(".cancel").each(function(that) {
+ that.click(function(ev) {
+ ev.preventDefault();
+ document.location = document.referrer;
+ })
+ });
{% block widgets %}{% endblock %}
});
</script>