Changed validation error to use new messaging framework

This commit is contained in:
David Baumgold
2013-05-10 14:34:09 -04:00
parent c6c5e50d86
commit 4e41c8060b

View File

@@ -240,7 +240,22 @@ CMS.Views.SectionEdit = Backbone.View.extend({
this.showView.render();
},
showErrorMessage: function(model, error, options) {
alert(error);
var msg = new CMS.Models.SystemFeedback({
type: "error",
title: "Validation Error",
message: error,
close: false,
icon: false,
actions: {
primary: {
text: "Dismiss",
click: function(model) {
model.hide()
}
}
}
})
new CMS.Views.Prompt({model: msg})
}
})