From 05683e9195feec7c66cb4f9615b58984c8772aa9 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 21 Sep 2023 01:01:25 +0000 Subject: [PATCH] fix for linting --- UI/Component/Form.js | 5 +++-- UI/GeneralUI.js | 12 ++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/UI/Component/Form.js b/UI/Component/Form.js index 761e77e..262c755 100755 --- a/UI/Component/Form.js +++ b/UI/Component/Form.js @@ -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. } - // @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?): // filter @@ -1098,7 +1099,7 @@ export class Form request.setResultCallback(0, function (xhr) { window.omsApp.logger.log(xhr.response); - const headerLocation = xhr.getResponseHeader('location') + const headerLocation = xhr.getResponseHeader('location'); if (headerLocation !== null) { window.location = headerLocation; diff --git a/UI/GeneralUI.js b/UI/GeneralUI.js index 65868f5..35af418 100755 --- a/UI/GeneralUI.js +++ b/UI/GeneralUI.js @@ -1,9 +1,9 @@ import { UriFactory } from '../Uri/UriFactory.js'; import { AdvancedInput } from './Component/AdvancedInput.js'; -import { NotificationLevel } from '../Message/Notification/NotificationLevel.js'; -import { NotificationMessage } from '../Message/Notification/NotificationMessage.js'; -import { NotificationType } from '../Message/Notification/NotificationType.js'; +//import { NotificationLevel } from '../Message/Notification/NotificationLevel.js'; +//import { NotificationMessage } from '../Message/Notification/NotificationMessage.js'; +//import { NotificationType } from '../Message/Notification/NotificationType.js'; /** * 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 { document.documentElement.innerHTML = html; @@ -349,8 +349,8 @@ export class GeneralUI const tagName = src.tagName.toLowerCase(); if (tagName === 'h1') { src.innerHTML = jsOMS.htmlspecialchars_encode(value); - } else if (tagName === 'select') { - return; + /*} else if (tagName === 'select') { + return;*/ } else if (src.getAttribute('value') !== null) { if (src.value === '') { src.value = jsOMS.htmlspecialchars_decode(value);