mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +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
@@ -24,6 +24,12 @@ Code style
|
||||
JSHint will be run when you run the JavaScript tests. We also recommended
|
||||
installing a JSHint plugin in your text editor.
|
||||
|
||||
* Where possible, write code that will work even if the page structure is later
|
||||
changed with JavaScript. For instance, when binding a click handler, use
|
||||
``$('body').on('click', selector, func)`` instead of
|
||||
``$(selector).click(func)``. This makes it easier for projects to extend
|
||||
Django's default behavior with JavaScript.
|
||||
|
||||
.. _javascript-patches:
|
||||
|
||||
JavaScript patches
|
||||
|
||||
Reference in New Issue
Block a user