Move form feedback to backend

This commit is contained in:
Dennis Eichhorn 2018-02-15 18:17:52 +01:00
parent b95e3c86f8
commit 0382f505a5

View File

@ -222,14 +222,12 @@
let tempResponse = null, let tempResponse = null,
success = null; success = null;
if (typeof document.getElementById(form.getId()).dataset.msg !== 'undefined') { if (typeof o.status !== 'undefined') {
let msg = JSON.parse(document.getElementById(form.getId()).dataset.msg);
self.app.notifyManager.send( self.app.notifyManager.send(
new jsOMS.Message.Notification.NotificationMessage( new jsOMS.Message.Notification.NotificationMessage(
jsOMS.Message.Notification.NotificationLevel.OK, o.status,
msg.title, o.title,
msg.message o.message
), jsOMS.Message.Notification.NotificationType.APP_NOTIFICATION ), jsOMS.Message.Notification.NotificationType.APP_NOTIFICATION
); );
} }