Quality size settings save now, with fancy messages

This commit is contained in:
Mark McDowall 2013-06-30 21:17:52 -07:00
parent 30827e91b6
commit af88bcdbf3
5 changed files with 230 additions and 6 deletions

View file

@ -2,9 +2,21 @@
define(
[
'backbone'
], function (Backbone) {
return Backbone.Model.extend({
'app',
'Settings/SettingsModelBase'
], function (App, ModelBase) {
return ModelBase.extend({
baseInitialize: ModelBase.prototype.initialize,
initialize: function () {
var name = this.get('name');
this.successMessage = 'Saved ' + name + ' size settings';
this.errorMessage = 'Couldn\'t save ' + name + ' size settings';
this.baseInitialize.call(this);
},
mutators: {
thirtyMinuteSize: function () {