1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-23 22:25:14 -04:00

Metadata settings added to UI

This commit is contained in:
Mark McDowall
2014-02-12 22:44:07 -08:00
parent c0ae876385
commit b339f8daf6
19 changed files with 302 additions and 4 deletions
@@ -0,0 +1,30 @@
'use strict';
define(
[
'AppLayout',
'marionette',
'Settings/Metadata/MetadataEditView',
'Mixins/AsModelBoundView'
], function (AppLayout, Marionette, EditView, AsModelBoundView) {
var view = Marionette.ItemView.extend({
template: 'Settings/Metadata/MetadataItemViewTemplate',
tagName : 'li',
events: {
'click .x-edit' : '_edit'
},
initialize: function () {
this.listenTo(this.model, 'sync', this.render);
},
_edit: function () {
var view = new EditView({ model: this.model});
AppLayout.modalRegion.show(view);
}
});
return AsModelBoundView.call(view);
});