diff options
Diffstat (limited to 'arduino_blog/static/admin/js/cancel.js')
l---------[-rw-r--r--] | arduino_blog/static/admin/js/cancel.js | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/arduino_blog/static/admin/js/cancel.js b/arduino_blog/static/admin/js/cancel.js index 04ec812..921aa44 100644..120000 --- a/arduino_blog/static/admin/js/cancel.js +++ b/arduino_blog/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/arduino-hosting/env-arduino/lib/python3.6/site-packages/django/contrib/admin/static/admin/js/cancel.js
\ No newline at end of file |