removed title region,

started adding support for a global tool bar.
This commit is contained in:
Keivan Beigi 2013-04-23 18:55:29 -07:00
parent a8e76b3251
commit 3638d85314
12 changed files with 79 additions and 40 deletions

View file

@ -1,14 +1,18 @@
"use strict";
define(['app'], function () {
define(['app', 'Shared/Toolbar/CommandCollection'], function () {
NzbDrone.Shared.Toolbar.ToolbarView = Backbone.Marionette.ItemView.extend({
template: 'Template',
template: 'Shared/Toolbar/ToolbarTemplate',
events: {
initialize: function () {
if (!this.collection) {
throw 'CommandCollection needs to be provided';
}
this.model = new Backbone.Model();
this.model.set('commands', this.collection.toJSON());
}
});
});