mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-01-04 06:38:28 +02:00
added empty view for series index collection.
This commit is contained in:
parent
c0d470e3bb
commit
8429139406
@ -1 +1,4 @@
|
|||||||
<td colspan="8">No series found</td>
|
<div class="well span11">
|
||||||
|
<i class="icon-comment"/>
|
||||||
|
You must be new around here, You should add some series.
|
||||||
|
</div>
|
@ -1,12 +1,19 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
define(['app', 'Quality/QualityProfileCollection', 'Series/Index/SeriesItemView', 'Config'], function (app, qualityProfileCollection) {
|
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({
|
NzbDrone.Series.Index.SeriesIndexCollectionView = Backbone.Marionette.CompositeView.extend({
|
||||||
itemView : NzbDrone.Series.Index.SeriesItemView,
|
itemView : NzbDrone.Series.Index.SeriesItemView,
|
||||||
itemViewContainer : '#x-series',
|
itemViewContainer : '#x-series',
|
||||||
template : 'Series/Index/SeriesIndexTemplate',
|
template : 'Series/Index/SeriesIndexTemplate',
|
||||||
qualityProfileCollection: qualityProfileCollection,
|
qualityProfileCollection: qualityProfileCollection,
|
||||||
//emptyView: NzbDrone.Series.EmptySeriesCollectionView,
|
|
||||||
|
emptyView : NzbDrone.Series.Index.EmptySeriesCollectionView,
|
||||||
|
|
||||||
getTemplate: function(){
|
getTemplate: function(){
|
||||||
if (this.viewStyle === 1){
|
if (this.viewStyle === 1){
|
||||||
@ -107,7 +114,6 @@ define(['app', 'Quality/QualityProfileCollection', 'Series/Index/SeriesItemView'
|
|||||||
if ($(event.currentTarget).hasClass('x-series-show-grid')) {
|
if ($(event.currentTarget).hasClass('x-series-show-grid')) {
|
||||||
NzbDrone.Config.SeriesViewStyle(1);
|
NzbDrone.Config.SeriesViewStyle(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
else {
|
else {
|
||||||
NzbDrone.Config.SeriesViewStyle(0);
|
NzbDrone.Config.SeriesViewStyle(0);
|
||||||
}
|
}
|
||||||
@ -117,9 +123,4 @@ define(['app', 'Quality/QualityProfileCollection', 'Series/Index/SeriesItemView'
|
|||||||
this.render();
|
this.render();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
|
||||||
NzbDrone.Series.Index.EmptySeriesCollectionView = Backbone.Marionette.CompositeView.extend({
|
|
||||||
template: 'Series/Index/EmptySeriesCollectionTemplate',
|
|
||||||
tagName : 'tr'
|
|
||||||
});
|
});
|
@ -6,6 +6,6 @@ define([
|
|||||||
], function () {
|
], function () {
|
||||||
|
|
||||||
NzbDrone.Settings.Indexers.IndexersView = Backbone.Marionette.ItemView.extend({
|
NzbDrone.Settings.Indexers.IndexersView = Backbone.Marionette.ItemView.extend({
|
||||||
template: 'Settings/Indexers/IndexersTemplate',
|
template: 'Settings/Indexers/IndexersTemplate'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
define(['app'], function () {
|
"use strict";
|
||||||
|
define(['app'], function () {
|
||||||
|
|
||||||
NzbDrone.Shared.NotificationModel = Backbone.Model.extend({
|
NzbDrone.Shared.NotificationModel = Backbone.Model.extend({
|
||||||
mutators: {
|
mutators: {
|
||||||
|
12
UI/Shared/Toolbar/ToolbarCollection.js
Normal file
12
UI/Shared/Toolbar/ToolbarCollection.js
Normal file
@ -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
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
12
UI/Shared/Toolbar/ToolbarModel.js
Normal file
12
UI/Shared/Toolbar/ToolbarModel.js
Normal file
@ -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
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
17
UI/Shared/Toolbar/ToolbarView.js
Normal file
17
UI/Shared/Toolbar/ToolbarView.js
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
"use strict";
|
||||||
|
define(['app'], function () {
|
||||||
|
|
||||||
|
NzbDrone.Shared.Toolbar.ToolbarView = Backbone.Marionette.ItemView.extend({
|
||||||
|
template: 'Template',
|
||||||
|
|
||||||
|
events: {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -42,6 +42,7 @@ define('app', function () {
|
|||||||
window.NzbDrone.AddSeries.RootFolders = {};
|
window.NzbDrone.AddSeries.RootFolders = {};
|
||||||
window.NzbDrone.Quality = {};
|
window.NzbDrone.Quality = {};
|
||||||
window.NzbDrone.Shared = {};
|
window.NzbDrone.Shared = {};
|
||||||
|
window.NzbDrone.Shared.Toolbar = {};
|
||||||
window.NzbDrone.Upcoming = {};
|
window.NzbDrone.Upcoming = {};
|
||||||
window.NzbDrone.Calendar = {};
|
window.NzbDrone.Calendar = {};
|
||||||
window.NzbDrone.Settings = {};
|
window.NzbDrone.Settings = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user