diff options
Diffstat (limited to 'static/admin/js/cancel.js')
-rw-r--r-- | static/admin/js/cancel.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/static/admin/js/cancel.js b/static/admin/js/cancel.js new file mode 100644 index 0000000..b641387 --- /dev/null +++ b/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); |