fix for linting

This commit is contained in:
Dennis Eichhorn 2023-09-21 01:01:25 +00:00
parent 372ff0db11
commit 05683e9195
2 changed files with 9 additions and 8 deletions

View File

@ -949,7 +949,8 @@ export class Form
// Consider: It might make sense to do this in the Table.js??? Kinda depends on additional functionality together with the form probably. // Consider: It might make sense to do this in the Table.js??? Kinda depends on additional functionality together with the form probably.
} }
// @todo: if input change check if iframe needs to be reloaded (if there is a iframe that is attached/part of the form e.g. media renderer based on currently selected element) // @todo: if input change check if iframe needs to be reloaded (if there is a iframe that is attached/part of the form
// e.g. media renderer based on currently selected element)
// remote actions (maybe solvable with callbacks?): // remote actions (maybe solvable with callbacks?):
// filter // filter
@ -1098,7 +1099,7 @@ export class Form
request.setResultCallback(0, function (xhr) request.setResultCallback(0, function (xhr)
{ {
window.omsApp.logger.log(xhr.response); window.omsApp.logger.log(xhr.response);
const headerLocation = xhr.getResponseHeader('location') const headerLocation = xhr.getResponseHeader('location');
if (headerLocation !== null) { if (headerLocation !== null) {
window.location = headerLocation; window.location = headerLocation;

View File

@ -1,9 +1,9 @@
import { UriFactory } from '../Uri/UriFactory.js'; import { UriFactory } from '../Uri/UriFactory.js';
import { AdvancedInput } from './Component/AdvancedInput.js'; import { AdvancedInput } from './Component/AdvancedInput.js';
import { NotificationLevel } from '../Message/Notification/NotificationLevel.js'; //import { NotificationLevel } from '../Message/Notification/NotificationLevel.js';
import { NotificationMessage } from '../Message/Notification/NotificationMessage.js'; //import { NotificationMessage } from '../Message/Notification/NotificationMessage.js';
import { NotificationType } from '../Message/Notification/NotificationType.js'; //import { NotificationType } from '../Message/Notification/NotificationType.js';
/** /**
* UI manager for handling basic ui elements. * UI manager for handling basic ui elements.
@ -160,7 +160,7 @@ export class GeneralUI
} }
}; };
window.omsApp.notifyManager.send(message, NotificationType.APP_NOTIFICATION); //window.omsApp.notifyManager.send(message, NotificationType.APP_NOTIFICATION);
} else { } else {
document.documentElement.innerHTML = html; document.documentElement.innerHTML = html;
@ -349,8 +349,8 @@ export class GeneralUI
const tagName = src.tagName.toLowerCase(); const tagName = src.tagName.toLowerCase();
if (tagName === 'h1') { if (tagName === 'h1') {
src.innerHTML = jsOMS.htmlspecialchars_encode(value); src.innerHTML = jsOMS.htmlspecialchars_encode(value);
} else if (tagName === 'select') { /*} else if (tagName === 'select') {
return; return;*/
} else if (src.getAttribute('value') !== null) { } else if (src.getAttribute('value') !== null) {
if (src.value === '') { if (src.value === '') {
src.value = jsOMS.htmlspecialchars_decode(value); src.value = jsOMS.htmlspecialchars_decode(value);