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