mirror of
https://github.com/django/django.git
synced 2025-10-25 06:36:07 +00:00
Fixed #26357 -- Allowed admin popups to work on links added after page load.
This commit is contained in:
committed by
Tim Graham
parent
6fdb12cdcc
commit
adc93e8599
@@ -162,7 +162,7 @@
|
||||
}
|
||||
});
|
||||
$('.related-widget-wrapper select').trigger('change');
|
||||
$('.related-lookup').click(function(e) {
|
||||
$('body').on('click', '.related-lookup', function(e) {
|
||||
e.preventDefault();
|
||||
var event = $.Event('django:lookup-related');
|
||||
$(this).trigger(event);
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
'use strict';
|
||||
$(document).ready(function() {
|
||||
var modelName = $('#django-admin-form-add-constants').data('modelName');
|
||||
$('.add-another').click(function(e) {
|
||||
$('body').on('click', '.add-another', function(e) {
|
||||
e.preventDefault();
|
||||
var event = $.Event('django:add-another-related');
|
||||
$(this).trigger(event);
|
||||
|
||||
Reference in New Issue
Block a user