UX Improvements for Home page and Accessibility Statement page

This commit is contained in:
2024-07-31 16:52:05 +01:00
parent 6f4e329258
commit 0201b85836
2341 changed files with 11763 additions and 296638 deletions

View File

@@ -419,7 +419,7 @@ function xmlJSONData(methodName, objJSON) {
xhr.send();
}
function ajaxJSONData(dataName, url, postData, successCallback, async) {
function ajaxJSONData(dataName, url, postData, successCallback, async, headers = {}) {
if (isEmpty(async)) async = true;
let formattedParams = getDataContentType(postData);
@@ -429,6 +429,7 @@ function ajaxJSONData(dataName, url, postData, successCallback, async) {
type: 'POST',
cache: false,
url: url,
headers: headers,
data: formattedParams.Data,
dataType: 'json',
contentType: formattedParams.ContentType,
@@ -573,6 +574,7 @@ function setPageToLoading(isLoading) {
}
}
/*
function displayOverlay(message, show, force) {
if (show) {
@@ -603,6 +605,7 @@ function displayOverlay(message, show, force) {
overlay.show();
}
}
*/
function setBackgroundToLoading(elId, isLoading) {
@@ -711,6 +714,14 @@ function isElementInContainer(container, element) {
);
}
function getRowFromElement(element) {
return $(element).closest('tr');
}
function getCellFromElement(element) {
return $(element).closest('td');
}
// Date picker inputs
/*
function hookupInputDatePickers(dateInputs, notFuture, notPast, parent, addClearOption) {