1
0
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:
Tim Graham
2016-03-24 16:22:35 -04:00
parent 8550566af6
commit acfaec3db5
6 changed files with 39 additions and 8 deletions

View File

@@ -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);

View File

@@ -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();