mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-30 11:48:26 -07:00
fixed saving settings. now done more generically.
This commit is contained in:
parent
d126c6efc1
commit
806e58ed1f
13 changed files with 104 additions and 161 deletions
|
@ -1,10 +1,10 @@
|
|||
"use strict";
|
||||
define(['app',
|
||||
'Mixins/AsChangeTrackingModel'], function (App, AsChangeTrackingModel) {
|
||||
var model = Backbone.Model.extend({
|
||||
url: App.Constants.ApiRoot + '/config/naming'
|
||||
'Settings/SettingsModelBase'], function (App, ModelBase) {
|
||||
return ModelBase.extend({
|
||||
url : App.Constants.ApiRoot + '/config/naming',
|
||||
successMessage: 'Naming settings saved',
|
||||
errorMessage : 'Couldn\'t save naming settings'
|
||||
});
|
||||
|
||||
return AsChangeTrackingModel.call(model);
|
||||
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue