Chat's updates for security, db and workflow
Security and workflow regressions / regression (push) Has been cancelled

This commit is contained in:
2026-10-20 06:45:30 -04:00
parent 02223083f6
commit 1e63076123
116 changed files with 3252 additions and 2932 deletions
+12 -21
View File
@@ -3,7 +3,7 @@
// Edit Dropdowntype
// =================
$(document).ready(function() {
$(document).ready(function () {
var $application = $("#APPLICATION_MNEMONIC").val(),
$sessionStorage = JSON.parse(sessionStorage.getItem($application) || "{}");
@@ -12,7 +12,7 @@ $(document).ready(function() {
// Save Button
// -----------
$(".btnSave").on("click", function(e) {
$(".btnSave").on("click", async function (e) {
e.preventDefault();
$("#editDropdowntype").submit();
});
@@ -21,7 +21,7 @@ $(document).ready(function() {
// Cancel Button.
// --------------
$(".btnCancel").on("click", function() {
$(".btnCancel").on("click", async function () {
formSubmit({ action : $sessionStorage.editDropdowntype });
});
@@ -29,9 +29,9 @@ $(document).ready(function() {
// Delete Button
// -------------
$(".btnDelete").on("click", function() {
$(".btnDelete").on("click", async function () {
if (formPost({ action : "Dropdowns.dropdowntypeActive", dropdowntype_serial : $sessionStorage.dropdowntype_serial }) === true) {
if (await formPost({ action : "Dropdowns.dropdowntypeActive", dropdowntype_serial : $sessionStorage.dropdowntype_serial }) === true) {
$("#continue-dialog").find(".modal-title").html("Cannot Delete Dropdown Type").end()
.find(".modal-body").html("Dropdown Type is in use and cannot be deleted.").end()
@@ -48,11 +48,11 @@ $(document).ready(function() {
});
$("body").on("click", ".confirm-delete-dropdowntype .btnConfirmDialogConfirm", function() {
$("body").on("click", ".confirm-delete-dropdowntype .btnConfirmDialogConfirm", async function () {
$.post("./", { action : "Dropdowns.deleteDropdowntype", dropdowntype_serial : $sessionStorage.dropdowntype_serial })
.done(function() {
.done(function () {
$sessionStorage.action = $sessionStorage.editDropdowntype || "";
$sessionStorage.toast = "Dropdown Type was Deleted";
@@ -69,7 +69,8 @@ $(document).ready(function() {
// Validate Inputs
// ---------------
$("#editDropdowntype").submit( function(e) {
$("#editDropdowntype").submit( async function (e) {
e.preventDefault();
var dropdowntype_serial = $("#dropdowntype_serial"),
dropdowntype_name = $("#dropdowntype_name"),
@@ -89,7 +90,7 @@ $(document).ready(function() {
return false;
}
if (formPost({ action : "Dropdowns.dropdowntypeExists", dropdowntype_serial : dropdowntype_serial.val(), dropdowntype_name : dropdowntype_name.val() }) === true) {
if (await formPost({ action : "Dropdowns.dropdowntypeExists", dropdowntype_serial : dropdowntype_serial.val(), dropdowntype_name : dropdowntype_name.val() }) === true) {
createInputError(dropdowntype_name, "Name already exists");
return false;
}
@@ -99,26 +100,16 @@ $(document).ready(function() {
return false;
}
if (formPost({ action : "Dropdowns.dropdowntypetitleExists", dropdowntype_serial : dropdowntype_serial.val(), dropdowntype_title : dropdowntype_title.val() }) === true) {
if (await formPost({ action : "Dropdowns.dropdowntypetitleExists", dropdowntype_serial : dropdowntype_serial.val(), dropdowntype_title : dropdowntype_title.val() }) === true) {
createInputError(dropdowntype_title, "Title already exists");
return false;
}
if (isBlank(dropdowntype_table)) {
createInputError(dropdowntype_table, "Table is required");
return false;
}
if (isBlank(dropdowntype_column)) {
createInputError(dropdowntype_column, "Column is required");
return false;
}
e.preventDefault();
$.post("./", $(this).serialize())
.done(function() {
.done(function () {
$sessionStorage.action = $sessionStorage.editDropdowntype || "";
$sessionStorage.toast = "Dropdown Type was Saved";