diff --git a/UI/Series/Index/EmptySeriesIndexTemplate.html b/UI/Series/Index/EmptySeriesIndexTemplate.html index 0b54712fc..5c92c88f2 100644 --- a/UI/Series/Index/EmptySeriesIndexTemplate.html +++ b/UI/Series/Index/EmptySeriesIndexTemplate.html @@ -1 +1,4 @@ -No series found \ No newline at end of file +
+ + You must be new around here, You should add some series. +
\ No newline at end of file diff --git a/UI/Series/Index/SeriesIndexCollectionView.js b/UI/Series/Index/SeriesIndexCollectionView.js index 662a7606f..f5fa07a4b 100644 --- a/UI/Series/Index/SeriesIndexCollectionView.js +++ b/UI/Series/Index/SeriesIndexCollectionView.js @@ -1,12 +1,19 @@ 'use strict'; define(['app', 'Quality/QualityProfileCollection', 'Series/Index/SeriesItemView', 'Config'], function (app, qualityProfileCollection) { + + NzbDrone.Series.Index.EmptySeriesCollectionView = Backbone.Marionette.CompositeView.extend({ + template: 'Series/Index/EmptySeriesIndexTemplate', + tagName : 'tr' + }); + NzbDrone.Series.Index.SeriesIndexCollectionView = Backbone.Marionette.CompositeView.extend({ itemView : NzbDrone.Series.Index.SeriesItemView, itemViewContainer : '#x-series', template : 'Series/Index/SeriesIndexTemplate', qualityProfileCollection: qualityProfileCollection, - //emptyView: NzbDrone.Series.EmptySeriesCollectionView, + + emptyView : NzbDrone.Series.Index.EmptySeriesCollectionView, getTemplate: function(){ if (this.viewStyle === 1){ @@ -107,7 +114,6 @@ define(['app', 'Quality/QualityProfileCollection', 'Series/Index/SeriesItemView' if ($(event.currentTarget).hasClass('x-series-show-grid')) { NzbDrone.Config.SeriesViewStyle(1); } - else { NzbDrone.Config.SeriesViewStyle(0); } @@ -117,9 +123,4 @@ define(['app', 'Quality/QualityProfileCollection', 'Series/Index/SeriesItemView' this.render(); } }); -}); - -NzbDrone.Series.Index.EmptySeriesCollectionView = Backbone.Marionette.CompositeView.extend({ - template: 'Series/Index/EmptySeriesCollectionTemplate', - tagName : 'tr' }); \ No newline at end of file diff --git a/UI/Settings/Indexers/IndexersView.js b/UI/Settings/Indexers/IndexersView.js index 1edeb8ad0..2592b802e 100644 --- a/UI/Settings/Indexers/IndexersView.js +++ b/UI/Settings/Indexers/IndexersView.js @@ -6,6 +6,6 @@ define([ ], function () { NzbDrone.Settings.Indexers.IndexersView = Backbone.Marionette.ItemView.extend({ - template: 'Settings/Indexers/IndexersTemplate', + template: 'Settings/Indexers/IndexersTemplate' }); }); diff --git a/UI/Shared/NotificationModel.js b/UI/Shared/NotificationModel.js index 0bcbde3f7..176f67b47 100644 --- a/UI/Shared/NotificationModel.js +++ b/UI/Shared/NotificationModel.js @@ -1,4 +1,5 @@ -define(['app'], function () { +"use strict"; +define(['app'], function () { NzbDrone.Shared.NotificationModel = Backbone.Model.extend({ mutators: { diff --git a/UI/Shared/Toolbar/ToolbarCollection.js b/UI/Shared/Toolbar/ToolbarCollection.js new file mode 100644 index 000000000..f2e12c59f --- /dev/null +++ b/UI/Shared/Toolbar/ToolbarCollection.js @@ -0,0 +1,12 @@ +"use strict"; +define(['app'], function () { + + NzbDrone.Shared.Toolbar.ToolbarModel = Backbone.Model.extend({ + + defaults: { + "route" : '/nzbdrone/route', + "title" : 'Title Goes Here', + "tooltip": undefined + } + }); +}); \ No newline at end of file diff --git a/UI/Shared/Toolbar/ToolbarModel.js b/UI/Shared/Toolbar/ToolbarModel.js new file mode 100644 index 000000000..f2e12c59f --- /dev/null +++ b/UI/Shared/Toolbar/ToolbarModel.js @@ -0,0 +1,12 @@ +"use strict"; +define(['app'], function () { + + NzbDrone.Shared.Toolbar.ToolbarModel = Backbone.Model.extend({ + + defaults: { + "route" : '/nzbdrone/route', + "title" : 'Title Goes Here', + "tooltip": undefined + } + }); +}); \ No newline at end of file diff --git a/UI/Shared/Toolbar/ToolbarView.js b/UI/Shared/Toolbar/ToolbarView.js new file mode 100644 index 000000000..4b198dbd7 --- /dev/null +++ b/UI/Shared/Toolbar/ToolbarView.js @@ -0,0 +1,17 @@ +"use strict"; +define(['app'], function () { + + NzbDrone.Shared.Toolbar.ToolbarView = Backbone.Marionette.ItemView.extend({ + template: 'Template', + + events: { + + } + + + }); +}); + + + + diff --git a/UI/app.js b/UI/app.js index 49bad76da..9b1bf3689 100644 --- a/UI/app.js +++ b/UI/app.js @@ -42,6 +42,7 @@ define('app', function () { window.NzbDrone.AddSeries.RootFolders = {}; window.NzbDrone.Quality = {}; window.NzbDrone.Shared = {}; + window.NzbDrone.Shared.Toolbar = {}; window.NzbDrone.Upcoming = {}; window.NzbDrone.Calendar = {}; window.NzbDrone.Settings = {};