1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-30 19:56:54 +00:00
Sonarr/UI/Settings/General/GeneralSettingsModel.js

24 lines
596 B
JavaScript
Raw Normal View History

'use strict';
define(
[
'backbone',
'Mixins/AsChangeTrackingModel'
], function (Backbone, AsChangeTrackingModel) {
var model = Backbone.Model.extend({
2013-06-19 01:02:23 +00:00
url: window.ApiRoot + '/settings/host',
initialize: function () {
this.on('change', function () {
this.isSaved = false;
}, this);
this.on('sync', function () {
this.isSaved = true;
}, this);
}
});
2013-06-19 01:02:23 +00:00
return AsChangeTrackingModel.call(model);
});