mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Fixed #26387 -- Restored the functionality of the admin's raw_id_fields in list_editable.
This commit is contained in:
@@ -162,6 +162,14 @@
|
||||
}
|
||||
});
|
||||
$('.related-widget-wrapper select').trigger('change');
|
||||
$('.related-lookup').click(function(e) {
|
||||
e.preventDefault();
|
||||
var event = $.Event('django:lookup-related');
|
||||
$(this).trigger(event);
|
||||
if (!event.isDefaultPrevented()) {
|
||||
showRelatedObjectLookupPopup(this);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
})(django.jQuery);
|
||||
|
||||
@@ -12,14 +12,6 @@
|
||||
showAddAnotherPopup(this);
|
||||
}
|
||||
});
|
||||
$('.related-lookup').click(function(e) {
|
||||
e.preventDefault();
|
||||
var event = $.Event('django:lookup-related');
|
||||
$(this).trigger(event);
|
||||
if (!event.isDefaultPrevented()) {
|
||||
showRelatedObjectLookupPopup(this);
|
||||
}
|
||||
});
|
||||
|
||||
if (modelName) {
|
||||
$('form#' + modelName + '_form :input:visible:enabled:first').focus();
|
||||
|
||||
Reference in New Issue
Block a user