Settings wired up

This commit is contained in:
Mark McDowall 2013-03-03 16:09:43 -08:00
parent 9a738e3a65
commit 50f6ec4fc6
23 changed files with 480 additions and 42 deletions

View file

@ -0,0 +1,29 @@
'use strict';
define([
'app', 'Settings/SettingsModel'
], function () {
NzbDrone.Settings.DownloadClient.DownloadClientView = Backbone.Marionette.ItemView.extend({
template: 'Settings/DownloadClient/DownloadClientTemplate',
events: {
'click .x-save': 'save'
},
initialize: function (options) {
this.model = options.model;
},
onRender: function () {
NzbDrone.ModelBinder.bind(this.model, this.el);
},
save: function () {
//Todo: Actually save the model
alert('Save pressed!');
}
});
});