diff options
author | prashantsinalkar | 2020-03-06 12:22:01 +0530 |
---|---|---|
committer | prashantsinalkar | 2020-03-06 12:22:01 +0530 |
commit | 54e3e9d75088b7b63419dd8fc15095324d19fac9 (patch) | |
tree | d447e52cdc343eb69a7382eabd5ab554b3883132 /static/admin/js/cancel.js | |
parent | 493e7d69008084fd6e54c674a8890d6b0c9869a5 (diff) | |
download | arduino_projects_website-54e3e9d75088b7b63419dd8fc15095324d19fac9.tar.gz arduino_projects_website-54e3e9d75088b7b63419dd8fc15095324d19fac9.tar.bz2 arduino_projects_website-54e3e9d75088b7b63419dd8fc15095324d19fac9.zip |
added static directory
Diffstat (limited to 'static/admin/js/cancel.js')
l---------[-rw-r--r--] | static/admin/js/cancel.js | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/static/admin/js/cancel.js b/static/admin/js/cancel.js index 04ec812..d7081c8 100644..120000 --- a/static/admin/js/cancel.js +++ b/static/admin/js/cancel.js @@ -1,13 +1 @@ -(function($) { - 'use strict'; - $(function() { - $('.cancel-link').on('click', function(e) { - e.preventDefault(); - if (window.location.search.indexOf('&_popup=1') === -1) { - window.history.back(); // Go back if not a popup. - } else { - window.close(); // Otherwise, close the popup. - } - }); - }); -})(django.jQuery); +/home/prashant/www/html/python/python_3.x/django_3.x/os-hardware/env-osh/lib/python3.6/site-packages/django/contrib/admin/static/admin/js/cancel.js
\ No newline at end of file |