From 0382f505a5ec7bbf28087d624df6fdd186645f55 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 15 Feb 2018 18:17:52 +0100 Subject: [PATCH] Move form feedback to backend --- UI/Component/Form.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/UI/Component/Form.js b/UI/Component/Form.js index cd5cc3a..ea90609 100644 --- a/UI/Component/Form.js +++ b/UI/Component/Form.js @@ -222,14 +222,12 @@ let tempResponse = null, success = null; - if (typeof document.getElementById(form.getId()).dataset.msg !== 'undefined') { - let msg = JSON.parse(document.getElementById(form.getId()).dataset.msg); - + if (typeof o.status !== 'undefined') { self.app.notifyManager.send( new jsOMS.Message.Notification.NotificationMessage( - jsOMS.Message.Notification.NotificationLevel.OK, - msg.title, - msg.message + o.status, + o.title, + o.message ), jsOMS.Message.Notification.NotificationType.APP_NOTIFICATION ); }