pull/3/head
Dan Gowans 2025-03-28 12:43:33 -04:00
parent 922603a1f2
commit ac4ae20f78
6 changed files with 23 additions and 22 deletions

View File

@ -245,9 +245,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
setUnsavedChanges();
burialSiteSelectCloseModalFunction();
}
function selectExistingBurialSite(clickEvent) {
clickEvent.preventDefault();
const selectedBurialSiteElement = clickEvent.currentTarget;
function selectExistingBurialSite(selectClickEvent) {
selectClickEvent.preventDefault();
const selectedBurialSiteElement = selectClickEvent.currentTarget;
renderSelectedBurialSiteAndClose(selectedBurialSiteElement.dataset.burialSiteId ?? '', selectedBurialSiteElement.dataset.burialSiteName ?? '');
}
function searchBurialSites() {

View File

@ -381,10 +381,10 @@ declare const exports: Record<string, unknown>
burialSiteSelectCloseModalFunction()
}
function selectExistingBurialSite(clickEvent: Event): void {
clickEvent.preventDefault()
function selectExistingBurialSite(selectClickEvent: Event): void {
selectClickEvent.preventDefault()
const selectedBurialSiteElement = clickEvent.currentTarget as HTMLElement
const selectedBurialSiteElement = selectClickEvent.currentTarget as HTMLElement
renderSelectedBurialSiteAndClose(
selectedBurialSiteElement.dataset.burialSiteId ?? '',

View File

@ -492,8 +492,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
}
});
}
function confirmDeleteFee(clickEvent) {
clickEvent.preventDefault();
function confirmDeleteFee(confirmDeleteFeeClickEvent) {
confirmDeleteFeeClickEvent.preventDefault();
function doDelete() {
cityssm.postJSON(`${sunrise.urlPrefix}/admin/doDeleteFee`, {
feeId
@ -562,11 +562,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
editModalElement = modalElement;
modalElement.querySelector('#feeEdit--feeId').value = fee.feeId.toString();
const feeCategoryElement = modalElement.querySelector('#feeEdit--feeCategoryId');
for (const feeCategory of feeCategories) {
for (const feeCategoryOption of feeCategories) {
const optionElement = document.createElement('option');
optionElement.value = feeCategory.feeCategoryId.toString();
optionElement.textContent = feeCategory.feeCategory;
if (feeCategory.feeCategoryId === feeCategoryId) {
optionElement.value = feeCategoryOption.feeCategoryId.toString();
optionElement.textContent = feeCategoryOption.feeCategory;
if (feeCategoryOption.feeCategoryId === feeCategoryId) {
optionElement.selected = true;
}
feeCategoryElement.append(optionElement);

View File

@ -782,8 +782,8 @@ declare const exports: Record<string, unknown>
)
}
function confirmDeleteFee(clickEvent: Event): void {
clickEvent.preventDefault()
function confirmDeleteFee(confirmDeleteFeeClickEvent: Event): void {
confirmDeleteFeeClickEvent.preventDefault()
function doDelete(): void {
cityssm.postJSON(
@ -890,12 +890,12 @@ declare const exports: Record<string, unknown>
'#feeEdit--feeCategoryId'
) as HTMLSelectElement
for (const feeCategory of feeCategories) {
for (const feeCategoryOption of feeCategories) {
const optionElement = document.createElement('option')
optionElement.value = feeCategory.feeCategoryId.toString()
optionElement.textContent = feeCategory.feeCategory
optionElement.value = feeCategoryOption.feeCategoryId.toString()
optionElement.textContent = feeCategoryOption.feeCategory
if (feeCategory.feeCategoryId === feeCategoryId) {
if (feeCategoryOption.feeCategoryId === feeCategoryId) {
optionElement.selected = true
}

View File

@ -255,7 +255,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
function deleteMilestone(clickEvent) {
clickEvent.preventDefault();
const workOrderMilestoneId = clickEvent.currentTarget.closest('.container--milestone').dataset.workOrderMilestoneId;
function doDelete() {
function doDeleteMilestone() {
cityssm.postJSON(`${sunrise.urlPrefix}/workOrders/doDeleteWorkOrderMilestone`, {
workOrderMilestoneId,
workOrderId
@ -267,7 +267,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
contextualColorName: 'warning',
okButton: {
text: 'Yes, Delete Milestone',
callbackFunction: doDelete
callbackFunction: doDeleteMilestone
}
});
}

View File

@ -398,7 +398,7 @@ declare const exports: Record<string, unknown>
) as HTMLElement
).dataset.workOrderMilestoneId
function doDelete(): void {
function doDeleteMilestone(): void {
cityssm.postJSON(
`${sunrise.urlPrefix}/workOrders/doDeleteWorkOrderMilestone`,
{
@ -415,7 +415,7 @@ declare const exports: Record<string, unknown>
contextualColorName: 'warning',
okButton: {
text: 'Yes, Delete Milestone',
callbackFunction: doDelete
callbackFunction: doDeleteMilestone
}
})
}
@ -799,6 +799,7 @@ declare const exports: Record<string, unknown>
conflictingMilestonePanelElement
)
},
onremoved() {
bulmaJS.toggleHtmlClipped()
;(