0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Getting frontend notifications back

closes #738
This commit is contained in:
Hannah Wolfe 2013-09-15 18:19:11 +01:00
parent 117f70dcfd
commit 7635ddee78

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