diff options
Diffstat (limited to 'static/admin/js/change_form.js')
l---------[-rw-r--r--] | static/admin/js/change_form.js | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/static/admin/js/change_form.js b/static/admin/js/change_form.js index 4797383..8586d28 100644..120000 --- a/static/admin/js/change_form.js +++ b/static/admin/js/change_form.js @@ -1,20 +1 @@ -/*global showAddAnotherPopup, showRelatedObjectLookupPopup showRelatedObjectPopup updateRelatedObjectLinks*/ - -(function($) { - 'use strict'; - $(document).ready(function() { - var modelName = $('#django-admin-form-add-constants').data('modelName'); - $('body').on('click', '.add-another', function(e) { - e.preventDefault(); - var event = $.Event('django:add-another-related'); - $(this).trigger(event); - if (!event.isDefaultPrevented()) { - showAddAnotherPopup(this); - } - }); - - if (modelName) { - $('form#' + modelName + '_form :input:visible:enabled:first').focus(); - } - }); -})(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/change_form.js
\ No newline at end of file |