mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
parent
de6839e158
commit
b761b229d5
1 changed files with 2 additions and 1 deletions
3
init.js
3
init.js
|
@ -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…
Reference in a new issue