Getting frontend notifications back

closes #738
This commit is contained in:
Hannah Wolfe 2013-09-15 18:19:11 +01:00
parent b3cc769f6f
commit 8c25c28441

View File

@ -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')) {