mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 00:53:57 -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,9 @@
|
|||
"use strict";
|
||||
define(['app',
|
||||
'backbone',
|
||||
'Mixins/SaveIfChangedModel'], function (App, Backbone, AsChangeTrackingModel) {
|
||||
var model = Backbone.Model.extend({
|
||||
url: App.Constants.ApiRoot + '/settings'
|
||||
'Settings/SettingsModelBase'], function (App, SettingsModelBase) {
|
||||
return SettingsModelBase.extend({
|
||||
url : App.Constants.ApiRoot + '/settings',
|
||||
successMessage: 'Settings saved',
|
||||
errorMessage : "Failed to save settings"
|
||||
});
|
||||
|
||||
return AsChangeTrackingModel.call(model);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue