Commit 5ff2adb8 by David Baumgold

Rename alert model to SystemFeedback

parent 56a92bff
CMS.Models.Alert = Backbone.Model.extend({
defaults: {
"type": null,
"title": null,
"message": null,
"shown": true
}
});
CMS.Models.SystemFeedback = Backbone.Model.extend({
defaults: {
"type": null, // "warning", "confirmation", "error", "announcement", "step-required"
"title": null,
"message": null,
"shown": true,
"close": false // show a close button?
/* could also have an "actions" hash: here is an example demonstrating
the expected structure
"actions": {
"primary": {
"text": "Save",
"class": "action-save",
"click": function(model) {
// do something when Save is clicked
}
},
"secondary": [
{
"text": "Cancel",
"class": "action-cancel",
"click": function(model) {}
}, {
"text": "Discard Changes",
"class": "action-discard",
"click": function(model) {}
}
]
}
*/
}
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment