Update all assets
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -231,3 +231,7 @@ body a:hover {
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.pagination {
|
||||
margin: 5px 0 10px 0;
|
||||
}
|
||||
|
||||
4
assets/rest_framework/css/bootstrap.min.css
vendored
4
assets/rest_framework/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -131,13 +131,7 @@ $(function () {
|
||||
if (value !== undefined) {
|
||||
params[paramKey] = value
|
||||
}
|
||||
} else if (dataType === 'array' && paramValue) {
|
||||
try {
|
||||
params[paramKey] = JSON.parse(paramValue)
|
||||
} catch (err) {
|
||||
// Ignore malformed JSON
|
||||
}
|
||||
} else if (dataType === 'object' && paramValue) {
|
||||
} else if ((dataType === 'array' && paramValue) || (dataType === 'object' && paramValue)) {
|
||||
try {
|
||||
params[paramKey] = JSON.parse(paramValue)
|
||||
} catch (err) {
|
||||
|
||||
@@ -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