2013-05-23 05:12:01 +00:00
|
|
|
|
"use strict";
|
2013-06-19 01:02:23 +00:00
|
|
|
|
define(['app', 'backbone', 'Mixins/AsChangeTrackingModel'], function (App, Backbone, AsChangeTrackingModel) {
|
|
|
|
|
var model = Backbone.Model.extend({
|
|
|
|
|
|
|
|
|
|
url: App.Constants.ApiRoot + '/settings/host',
|
2013-05-23 05:12:01 +00:00
|
|
|
|
|
|
|
|
|
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);
|
2013-05-23 05:12:01 +00:00
|
|
|
|
});
|