Added FileSizeCell

This commit is contained in:
kay.one 2013-06-06 17:50:17 -07:00
parent 890d1f2398
commit 5f8c58adb9
4 changed files with 24 additions and 20 deletions

View file

@ -1,5 +1,5 @@
"use strict";
define(['app'], function () {
define(['app', 'Shared/Cells/FileSizeCell'], function () {
NzbDrone.Episode.Search.Layout = Backbone.Marionette.Layout.extend({
template: 'Episode/Search/LayoutTemplate',
@ -19,7 +19,7 @@ define(['app'], function () {
name : 'size',
label : 'Size',
sortable: true,
cell : Backgrid.IntegerCell
cell : NzbDrone.Shared.Cells.FileSizeCell
},
{
name : 'title',
@ -27,16 +27,6 @@ define(['app'], function () {
sortable: true,
cell : Backgrid.StringCell
},
{
name : 'seasonNumber',
label: 'season',
cell : Backgrid.IntegerCell
},
{
name : 'episodeNumber',
label: 'episode',
cell : Backgrid.StringCell
},
{
name : 'approved',
label: 'Approved',
@ -44,13 +34,7 @@ define(['app'], function () {
}
],
initialize: function () {
},
onShow :function(){
onShow: function () {
if (!this.isClosed) {
this.grid.show(new Backgrid.Grid(
{