mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
Starting missing conversion to backgrid
This commit is contained in:
parent
af2da6380b
commit
00276041ad
18 changed files with 148 additions and 204 deletions
|
@ -84,7 +84,7 @@ define([
|
|||
|
||||
this.series.show(new Backgrid.Grid(
|
||||
{
|
||||
row : Backgrid.SeriesIndexTableRow,
|
||||
row : NzbDrone.Series.Index.Table.Row,
|
||||
columns : columns,
|
||||
collection: this.seriesCollection,
|
||||
className : 'table table-hover'
|
||||
|
|
|
@ -1,24 +1,4 @@
|
|||
<!--<div class="row series-toolbar">
|
||||
<div class="span12">
|
||||
<div class="pull-left">
|
||||
<div class="btn-group">
|
||||
<button class="btn">Left</button>
|
||||
<button class="btn">Middle</button>
|
||||
<button class="btn">Right</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
<div class="btn-toolbar">
|
||||
<div class="btn-group">
|
||||
<a class="btn x-series-change-view x-series-show-table" href="#" title="Table" data-target="0"><i class="icon-table"></i></a>
|
||||
<a class="btn x-series-change-view x-series-show-list" href="#" title="List" data-target="1"><i class="icon-list"></i></a>
|
||||
<a class="btn x-series-change-view x-series-show-posters" href="#" title="Posters" data-target="2"><i class="icon-picture"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>-->
|
||||
<div id="x-toolbar"></div>
|
||||
<div id="x-toolbar"></div>
|
||||
<div class="row">
|
||||
<div class="span12">
|
||||
<div id="x-series"></div>
|
||||
|
|
21
UI/Series/Index/Table/Row.js
Normal file
21
UI/Series/Index/Table/Row.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
NzbDrone.Series.Index.Table.Row = Backgrid.Row.extend({
|
||||
events: {
|
||||
'click .x-edit' : 'editSeries',
|
||||
'click .x-remove': 'removeSeries'
|
||||
},
|
||||
|
||||
editSeries: function () {
|
||||
var view = new NzbDrone.Series.Edit.EditSeriesView({ model: this.model});
|
||||
|
||||
NzbDrone.vent.trigger(NzbDrone.Events.OpenModalDialog, {
|
||||
view: view
|
||||
});
|
||||
},
|
||||
|
||||
removeSeries: function () {
|
||||
var view = new NzbDrone.Series.Delete.DeleteSeriesView({ model: this.model });
|
||||
NzbDrone.vent.trigger(NzbDrone.Events.OpenModalDialog, {
|
||||
view: view
|
||||
});
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue