2013-10-08 22:48:40 -07:00
|
|
|
'use strict';
|
2013-06-25 00:21:10 -07:00
|
|
|
|
2013-06-24 16:41:59 -07:00
|
|
|
define(
|
|
|
|
[
|
2013-06-30 21:17:52 -07:00
|
|
|
'Settings/SettingsModelBase'
|
2013-10-08 18:43:41 -07:00
|
|
|
], function (ModelBase) {
|
2013-06-30 21:17:52 -07:00
|
|
|
return ModelBase.extend({
|
|
|
|
|
|
|
|
baseInitialize: ModelBase.prototype.initialize,
|
|
|
|
|
|
|
|
initialize: function () {
|
2014-01-18 12:44:36 +01:00
|
|
|
var name = this.get('quality').name;
|
2013-06-30 21:17:52 -07:00
|
|
|
|
2014-01-18 12:44:36 +01:00
|
|
|
this.successMessage = 'Saved ' + name + ' quality settings';
|
|
|
|
this.errorMessage = 'Couldn\'t save ' + name + ' quality settings';
|
2013-06-30 21:17:52 -07:00
|
|
|
|
|
|
|
this.baseInitialize.call(this);
|
2013-03-07 00:01:18 -08:00
|
|
|
}
|
2013-06-24 16:41:59 -07:00
|
|
|
});
|
2013-03-07 00:01:18 -08:00
|
|
|
});
|