mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 01:26:53 +03:00
Improve integration with Django Debug Toolbar (#9213)
This commit is contained in:
parent
4c7c693f15
commit
a2eabfc867
|
@ -3,6 +3,12 @@ function replaceDocument(docString) {
|
||||||
|
|
||||||
doc.write(docString);
|
doc.write(docString);
|
||||||
doc.close();
|
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) {
|
function doAjaxSubmit(e) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user