mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 17:13:49 -07:00
Quality size settings save now, with fancy messages
This commit is contained in:
parent
30827e91b6
commit
af88bcdbf3
5 changed files with 230 additions and 6 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue