mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Quality size settings save now, with fancy messages
This commit is contained in:
@@ -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 () {
|
||||
|
Reference in New Issue
Block a user