From 8c25c284410d3e2da1ac32753b2850f99cb774d4 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Sun, 15 Sep 2013 18:19:11 +0100 Subject: [PATCH] Getting frontend notifications back closes #738 --- ghost/admin/init.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ghost/admin/init.js b/ghost/admin/init.js index c50019325f..2e7bab5538 100644 --- a/ghost/admin/init.js +++ b/ghost/admin/init.js @@ -45,9 +45,10 @@ Ghost.Validate.handleErrors = function () { _.each(Ghost.Validate._errors, function (errorObj) { + Ghost.notifications.addItem({ type: 'error', - message: errorObj.message, + message: errorObj.message || errorObj, status: 'passive' }); if (errorObj.hasOwnProperty('el')) {