Improve integration with Django Debug Toolbar (#9213)

This commit is contained in:
şuayip üzülmez 2024-03-07 12:58:59 +03:00 committed by GitHub
parent 4c7c693f15
commit a2eabfc867
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,6 +3,12 @@ function replaceDocument(docString) {
doc.write(docString);
doc.close();
if (window.djdt) {
// If Django Debug Toolbar is available, reinitialize it so that
// it can show updated panels from new `docString`.
window.addEventListener("load", djdt.init);
}
}
function doAjaxSubmit(e) {