Settings save when changed only

This commit is contained in:
Mark McDowall 2013-06-13 16:19:24 -07:00
parent 8b8ee912c0
commit bddbc7a0cf
7 changed files with 39 additions and 34 deletions

View file

@ -1,6 +1,9 @@
"use strict";
define(['app'], function () {
define(['app',
'Mixins/SaveIfChangedModel'], function () {
NzbDrone.Settings.SettingsModel = Backbone.Model.extend({
url: NzbDrone.Constants.ApiRoot + '/settings'
});
_.extend(NzbDrone.Settings.SettingsModel.prototype, NzbDrone.Mixins.SaveIfChangedModel);
});