linting
parent
922603a1f2
commit
ac4ae20f78
|
|
@ -245,9 +245,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
setUnsavedChanges();
|
setUnsavedChanges();
|
||||||
burialSiteSelectCloseModalFunction();
|
burialSiteSelectCloseModalFunction();
|
||||||
}
|
}
|
||||||
function selectExistingBurialSite(clickEvent) {
|
function selectExistingBurialSite(selectClickEvent) {
|
||||||
clickEvent.preventDefault();
|
selectClickEvent.preventDefault();
|
||||||
const selectedBurialSiteElement = clickEvent.currentTarget;
|
const selectedBurialSiteElement = selectClickEvent.currentTarget;
|
||||||
renderSelectedBurialSiteAndClose(selectedBurialSiteElement.dataset.burialSiteId ?? '', selectedBurialSiteElement.dataset.burialSiteName ?? '');
|
renderSelectedBurialSiteAndClose(selectedBurialSiteElement.dataset.burialSiteId ?? '', selectedBurialSiteElement.dataset.burialSiteName ?? '');
|
||||||
}
|
}
|
||||||
function searchBurialSites() {
|
function searchBurialSites() {
|
||||||
|
|
|
||||||
|
|
@ -381,10 +381,10 @@ declare const exports: Record<string, unknown>
|
||||||
burialSiteSelectCloseModalFunction()
|
burialSiteSelectCloseModalFunction()
|
||||||
}
|
}
|
||||||
|
|
||||||
function selectExistingBurialSite(clickEvent: Event): void {
|
function selectExistingBurialSite(selectClickEvent: Event): void {
|
||||||
clickEvent.preventDefault()
|
selectClickEvent.preventDefault()
|
||||||
|
|
||||||
const selectedBurialSiteElement = clickEvent.currentTarget as HTMLElement
|
const selectedBurialSiteElement = selectClickEvent.currentTarget as HTMLElement
|
||||||
|
|
||||||
renderSelectedBurialSiteAndClose(
|
renderSelectedBurialSiteAndClose(
|
||||||
selectedBurialSiteElement.dataset.burialSiteId ?? '',
|
selectedBurialSiteElement.dataset.burialSiteId ?? '',
|
||||||
|
|
|
||||||
|
|
@ -492,8 +492,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function confirmDeleteFee(clickEvent) {
|
function confirmDeleteFee(confirmDeleteFeeClickEvent) {
|
||||||
clickEvent.preventDefault();
|
confirmDeleteFeeClickEvent.preventDefault();
|
||||||
function doDelete() {
|
function doDelete() {
|
||||||
cityssm.postJSON(`${sunrise.urlPrefix}/admin/doDeleteFee`, {
|
cityssm.postJSON(`${sunrise.urlPrefix}/admin/doDeleteFee`, {
|
||||||
feeId
|
feeId
|
||||||
|
|
@ -562,11 +562,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
editModalElement = modalElement;
|
editModalElement = modalElement;
|
||||||
modalElement.querySelector('#feeEdit--feeId').value = fee.feeId.toString();
|
modalElement.querySelector('#feeEdit--feeId').value = fee.feeId.toString();
|
||||||
const feeCategoryElement = modalElement.querySelector('#feeEdit--feeCategoryId');
|
const feeCategoryElement = modalElement.querySelector('#feeEdit--feeCategoryId');
|
||||||
for (const feeCategory of feeCategories) {
|
for (const feeCategoryOption of feeCategories) {
|
||||||
const optionElement = document.createElement('option');
|
const optionElement = document.createElement('option');
|
||||||
optionElement.value = feeCategory.feeCategoryId.toString();
|
optionElement.value = feeCategoryOption.feeCategoryId.toString();
|
||||||
optionElement.textContent = feeCategory.feeCategory;
|
optionElement.textContent = feeCategoryOption.feeCategory;
|
||||||
if (feeCategory.feeCategoryId === feeCategoryId) {
|
if (feeCategoryOption.feeCategoryId === feeCategoryId) {
|
||||||
optionElement.selected = true;
|
optionElement.selected = true;
|
||||||
}
|
}
|
||||||
feeCategoryElement.append(optionElement);
|
feeCategoryElement.append(optionElement);
|
||||||
|
|
|
||||||
|
|
@ -782,8 +782,8 @@ declare const exports: Record<string, unknown>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
function confirmDeleteFee(clickEvent: Event): void {
|
function confirmDeleteFee(confirmDeleteFeeClickEvent: Event): void {
|
||||||
clickEvent.preventDefault()
|
confirmDeleteFeeClickEvent.preventDefault()
|
||||||
|
|
||||||
function doDelete(): void {
|
function doDelete(): void {
|
||||||
cityssm.postJSON(
|
cityssm.postJSON(
|
||||||
|
|
@ -890,12 +890,12 @@ declare const exports: Record<string, unknown>
|
||||||
'#feeEdit--feeCategoryId'
|
'#feeEdit--feeCategoryId'
|
||||||
) as HTMLSelectElement
|
) as HTMLSelectElement
|
||||||
|
|
||||||
for (const feeCategory of feeCategories) {
|
for (const feeCategoryOption of feeCategories) {
|
||||||
const optionElement = document.createElement('option')
|
const optionElement = document.createElement('option')
|
||||||
optionElement.value = feeCategory.feeCategoryId.toString()
|
optionElement.value = feeCategoryOption.feeCategoryId.toString()
|
||||||
optionElement.textContent = feeCategory.feeCategory
|
optionElement.textContent = feeCategoryOption.feeCategory
|
||||||
|
|
||||||
if (feeCategory.feeCategoryId === feeCategoryId) {
|
if (feeCategoryOption.feeCategoryId === feeCategoryId) {
|
||||||
optionElement.selected = true
|
optionElement.selected = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -255,7 +255,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
function deleteMilestone(clickEvent) {
|
function deleteMilestone(clickEvent) {
|
||||||
clickEvent.preventDefault();
|
clickEvent.preventDefault();
|
||||||
const workOrderMilestoneId = clickEvent.currentTarget.closest('.container--milestone').dataset.workOrderMilestoneId;
|
const workOrderMilestoneId = clickEvent.currentTarget.closest('.container--milestone').dataset.workOrderMilestoneId;
|
||||||
function doDelete() {
|
function doDeleteMilestone() {
|
||||||
cityssm.postJSON(`${sunrise.urlPrefix}/workOrders/doDeleteWorkOrderMilestone`, {
|
cityssm.postJSON(`${sunrise.urlPrefix}/workOrders/doDeleteWorkOrderMilestone`, {
|
||||||
workOrderMilestoneId,
|
workOrderMilestoneId,
|
||||||
workOrderId
|
workOrderId
|
||||||
|
|
@ -267,7 +267,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
contextualColorName: 'warning',
|
contextualColorName: 'warning',
|
||||||
okButton: {
|
okButton: {
|
||||||
text: 'Yes, Delete Milestone',
|
text: 'Yes, Delete Milestone',
|
||||||
callbackFunction: doDelete
|
callbackFunction: doDeleteMilestone
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -398,7 +398,7 @@ declare const exports: Record<string, unknown>
|
||||||
) as HTMLElement
|
) as HTMLElement
|
||||||
).dataset.workOrderMilestoneId
|
).dataset.workOrderMilestoneId
|
||||||
|
|
||||||
function doDelete(): void {
|
function doDeleteMilestone(): void {
|
||||||
cityssm.postJSON(
|
cityssm.postJSON(
|
||||||
`${sunrise.urlPrefix}/workOrders/doDeleteWorkOrderMilestone`,
|
`${sunrise.urlPrefix}/workOrders/doDeleteWorkOrderMilestone`,
|
||||||
{
|
{
|
||||||
|
|
@ -415,7 +415,7 @@ declare const exports: Record<string, unknown>
|
||||||
contextualColorName: 'warning',
|
contextualColorName: 'warning',
|
||||||
okButton: {
|
okButton: {
|
||||||
text: 'Yes, Delete Milestone',
|
text: 'Yes, Delete Milestone',
|
||||||
callbackFunction: doDelete
|
callbackFunction: doDeleteMilestone
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -799,6 +799,7 @@ declare const exports: Record<string, unknown>
|
||||||
conflictingMilestonePanelElement
|
conflictingMilestonePanelElement
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|
||||||
onremoved() {
|
onremoved() {
|
||||||
bulmaJS.toggleHtmlClipped()
|
bulmaJS.toggleHtmlClipped()
|
||||||
;(
|
;(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue