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
commit 3638d85314
12 changed files with 79 additions and 40 deletions

View file

@ -2,18 +2,22 @@
define([
'app',
'Series/Index/List/CollectionView',
'Config'
'Series/Index/Posters/CollectionView',
'Series/Index/EmptyView',
'Config',
'Series/Index/Table/AirDateCell',
'Series/Index/Table/SeriesStatusCell'
'Shared/Toolbar/ToolbarView',
'Config'
],
function () {
NzbDrone.Series.Index.SeriesIndexLayout = Backbone.Marionette.Layout.extend({
template: 'Series/Index/SeriesIndexLayoutTemplate',
regions: {
series: '#x-series'
series : '#x-series',
toolbar: '#x-toolbar'
},
ui: {
@ -175,6 +179,15 @@ define([
},
onShow: function () {
var commands = new NzbDrone.Shared.Toolbar.CommandCollection();
commands.add(new NzbDrone.Shared.Toolbar.CommandModel({title: "Add Series", icon: "icon-plus"}));
commands.add(new NzbDrone.Shared.Toolbar.CommandModel({title: "RSS Sync", icon: "icon-rss"}));
commands.add(new NzbDrone.Shared.Toolbar.CommandModel({title: "Sync Database", icon: "icon-refresh"}));
this.toolbar.show(new NzbDrone.Shared.Toolbar.ToolbarView({collection: commands}));
switch (this.viewStyle) {
case 1:
this.showList();