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,
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
);
}