1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00

Getting frontend notifications back

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

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