Update all assets
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -38,6 +38,7 @@ function sameOrigin(url) {
|
||||
!(/^(\/\/|http:|https:).*/.test(url));
|
||||
}
|
||||
|
||||
window.drf = JSON.parse(document.getElementById('drf_csrf').textContent);
|
||||
var csrftoken = window.drf.csrfToken;
|
||||
|
||||
$.ajaxSetup({
|
||||
|
||||
2
assets/rest_framework/js/jquery-3.5.1.min.js
vendored
2
assets/rest_framework/js/jquery-3.5.1.min.js
vendored
File diff suppressed because one or more lines are too long
2
assets/rest_framework/js/jquery-3.7.1.min.js
vendored
Normal file
2
assets/rest_framework/js/jquery-3.7.1.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
3
assets/rest_framework/js/load-ajax-form.js
Normal file
3
assets/rest_framework/js/load-ajax-form.js
Normal file
@@ -0,0 +1,3 @@
|
||||
$(document).ready(function() {
|
||||
$('form').ajaxForm();
|
||||
});
|
||||
Reference in New Issue
Block a user