mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
parent
117f70dcfd
commit
7635ddee78
1 changed files with 2 additions and 1 deletions
|
@ -45,9 +45,10 @@
|
||||||
|
|
||||||
Ghost.Validate.handleErrors = function () {
|
Ghost.Validate.handleErrors = function () {
|
||||||
_.each(Ghost.Validate._errors, function (errorObj) {
|
_.each(Ghost.Validate._errors, function (errorObj) {
|
||||||
|
|
||||||
Ghost.notifications.addItem({
|
Ghost.notifications.addItem({
|
||||||
type: 'error',
|
type: 'error',
|
||||||
message: errorObj.message,
|
message: errorObj.message || errorObj,
|
||||||
status: 'passive'
|
status: 'passive'
|
||||||
});
|
});
|
||||||
if (errorObj.hasOwnProperty('el')) {
|
if (errorObj.hasOwnProperty('el')) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue