codeql fix, linting
parent
cd1c452559
commit
0664b43cca
|
|
@ -51,7 +51,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
}, (responseJSON) => {
|
||||
var _a;
|
||||
if (responseJSON.success) {
|
||||
window.location.href = los.urlPrefix + '/workOrders/' + workOrderId;
|
||||
window.location.href = los.getWorkOrderURL(workOrderId);
|
||||
}
|
||||
else {
|
||||
bulmaJS.alert({
|
||||
|
|
@ -557,9 +557,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
else {
|
||||
rowElement.insertAdjacentHTML('beforeend', `<td><span class="has-text-grey">(No ${los.escapedAliases.Lot})</span></td>`);
|
||||
}
|
||||
rowElement.insertAdjacentHTML('beforeend', '<td>' +
|
||||
lotOccupancy.occupancyStartDateString +
|
||||
'</td>' +
|
||||
rowElement.insertAdjacentHTML('beforeend', `<td>${lotOccupancy.occupancyStartDateString}</td>` +
|
||||
('<td>' +
|
||||
(lotOccupancy.occupancyEndDate
|
||||
? lotOccupancy.occupancyEndDateString
|
||||
|
|
@ -567,9 +565,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
'</td>') +
|
||||
('<td>' +
|
||||
(lotOccupancy.lotOccupancyOccupants.length === 0
|
||||
? '<span class="has-text-grey">(No ' +
|
||||
cityssm.escapeHTML(los.escapedAliases.Occupants) +
|
||||
')</span>'
|
||||
? `<span class="has-text-grey">(No ${cityssm.escapeHTML(los.escapedAliases.Occupants)})</span>`
|
||||
: cityssm.escapeHTML(lotOccupancy.lotOccupancyOccupants[0].occupantName +
|
||||
' ' +
|
||||
lotOccupancy.lotOccupancyOccupants[0]
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
}, (responseJSON) => {
|
||||
var _a;
|
||||
if (responseJSON.success) {
|
||||
window.location.href = los.urlPrefix + '/workOrders/' + workOrderId;
|
||||
window.location.href = los.getWorkOrderURL(workOrderId);
|
||||
}
|
||||
else {
|
||||
bulmaJS.alert({
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ declare const bulmaJS: BulmaJS
|
|||
},
|
||||
(responseJSON: { success: boolean; errorMessage?: string }) => {
|
||||
if (responseJSON.success) {
|
||||
window.location.href = los.urlPrefix + '/workOrders/' + workOrderId
|
||||
window.location.href = los.getWorkOrderURL(workOrderId)
|
||||
} else {
|
||||
bulmaJS.alert({
|
||||
title: 'Error Closing Work Order',
|
||||
|
|
|
|||
|
|
@ -420,9 +420,7 @@ function doAddLotOccupancy(clickEvent) {
|
|||
else {
|
||||
rowElement.insertAdjacentHTML('beforeend', `<td><span class="has-text-grey">(No ${los.escapedAliases.Lot})</span></td>`);
|
||||
}
|
||||
rowElement.insertAdjacentHTML('beforeend', '<td>' +
|
||||
lotOccupancy.occupancyStartDateString +
|
||||
'</td>' +
|
||||
rowElement.insertAdjacentHTML('beforeend', `<td>${lotOccupancy.occupancyStartDateString}</td>` +
|
||||
('<td>' +
|
||||
(lotOccupancy.occupancyEndDate
|
||||
? lotOccupancy.occupancyEndDateString
|
||||
|
|
@ -430,9 +428,7 @@ function doAddLotOccupancy(clickEvent) {
|
|||
'</td>') +
|
||||
('<td>' +
|
||||
(lotOccupancy.lotOccupancyOccupants.length === 0
|
||||
? '<span class="has-text-grey">(No ' +
|
||||
cityssm.escapeHTML(los.escapedAliases.Occupants) +
|
||||
')</span>'
|
||||
? `<span class="has-text-grey">(No ${cityssm.escapeHTML(los.escapedAliases.Occupants)})</span>`
|
||||
: cityssm.escapeHTML(lotOccupancy.lotOccupancyOccupants[0].occupantName +
|
||||
' ' +
|
||||
lotOccupancy.lotOccupancyOccupants[0]
|
||||
|
|
|
|||
|
|
@ -598,19 +598,17 @@ document
|
|||
|
||||
rowElement.insertAdjacentHTML(
|
||||
'beforeend',
|
||||
'<td>' +
|
||||
lotOccupancy.occupancyStartDateString +
|
||||
'</td>' +
|
||||
`<td>${lotOccupancy.occupancyStartDateString!}</td>` +
|
||||
('<td>' +
|
||||
(lotOccupancy.occupancyEndDate
|
||||
? lotOccupancy.occupancyEndDateString
|
||||
? lotOccupancy.occupancyEndDateString!
|
||||
: '<span class="has-text-grey">(No End Date)</span>') +
|
||||
'</td>') +
|
||||
('<td>' +
|
||||
(lotOccupancy.lotOccupancyOccupants!.length === 0
|
||||
? '<span class="has-text-grey">(No ' +
|
||||
cityssm.escapeHTML(los.escapedAliases.Occupants) +
|
||||
')</span>'
|
||||
? `<span class="has-text-grey">(No ${cityssm.escapeHTML(
|
||||
los.escapedAliases.Occupants
|
||||
)})</span>`
|
||||
: cityssm.escapeHTML(
|
||||
lotOccupancy.lotOccupancyOccupants![0].occupantName! +
|
||||
' ' +
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue