diff options
Diffstat (limited to 'website/static/admin/js/cancel.js')
-rw-r--r-- | website/static/admin/js/cancel.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/website/static/admin/js/cancel.js b/website/static/admin/js/cancel.js new file mode 100644 index 0000000..b641387 --- /dev/null +++ b/website/static/admin/js/cancel.js @@ -0,0 +1,9 @@ +(function($) { + 'use strict'; + $(function() { + $('.cancel-link').click(function(e) { + e.preventDefault(); + window.history.back(); + }); + }); +})(django.jQuery); |