save some typing when getting the admin object. Mark the type column as not sortable since it isn't an asset property.

This commit is contained in:
Colin Kuskie 2011-10-01 20:09:25 -07:00
parent f20302cc63
commit 3de9a22bc4

View file

@ -1412,25 +1412,25 @@ WebGUI.Admin.AssetTable
},
{
key: 'title',
label: window.admin.i18n.get('Asset', '99'),
label: admin.i18n.get('Asset', '99'),
formatter: bind( this, this.formatTitle ),
sortable: true
},
{
key: 'type',
label: window.admin.i18n.get('Asset','type'),
sortable: true,
label: admin.i18n.get('Asset','type'),
sortable: false,
formatter: bind( this, this.formatType )
},
{
key: 'revisionDate',
label: window.admin.i18n.get('Asset','revision date' ),
label: admin.i18n.get('Asset','revision date' ),
formatter: bind( this, this.formatRevisionDate ),
sortable: true
},
{
key: 'assetSize',
label: window.admin.i18n.get('Asset','size' ),
label: admin.i18n.get('Asset','size' ),
formatter: bind( this, this.formatAssetSize ),
sortable: true
},
@ -2511,7 +2511,7 @@ WebGUI.Admin.Search.prototype.addFilter
var type = menuitem.value;
filter.type = type;
li.className = "filter_" + filter.type;
li.mlassName = "filter_" + filter.type;
var ul = this.searchFiltersContainer;
ul.appendChild( li );