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:
parent
f20302cc63
commit
3de9a22bc4
1 changed files with 6 additions and 6 deletions
|
|
@ -1412,25 +1412,25 @@ WebGUI.Admin.AssetTable
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'title',
|
key: 'title',
|
||||||
label: window.admin.i18n.get('Asset', '99'),
|
label: admin.i18n.get('Asset', '99'),
|
||||||
formatter: bind( this, this.formatTitle ),
|
formatter: bind( this, this.formatTitle ),
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'type',
|
key: 'type',
|
||||||
label: window.admin.i18n.get('Asset','type'),
|
label: admin.i18n.get('Asset','type'),
|
||||||
sortable: true,
|
sortable: false,
|
||||||
formatter: bind( this, this.formatType )
|
formatter: bind( this, this.formatType )
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'revisionDate',
|
key: 'revisionDate',
|
||||||
label: window.admin.i18n.get('Asset','revision date' ),
|
label: admin.i18n.get('Asset','revision date' ),
|
||||||
formatter: bind( this, this.formatRevisionDate ),
|
formatter: bind( this, this.formatRevisionDate ),
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'assetSize',
|
key: 'assetSize',
|
||||||
label: window.admin.i18n.get('Asset','size' ),
|
label: admin.i18n.get('Asset','size' ),
|
||||||
formatter: bind( this, this.formatAssetSize ),
|
formatter: bind( this, this.formatAssetSize ),
|
||||||
sortable: true
|
sortable: true
|
||||||
},
|
},
|
||||||
|
|
@ -2511,7 +2511,7 @@ WebGUI.Admin.Search.prototype.addFilter
|
||||||
|
|
||||||
var type = menuitem.value;
|
var type = menuitem.value;
|
||||||
filter.type = type;
|
filter.type = type;
|
||||||
li.className = "filter_" + filter.type;
|
li.mlassName = "filter_" + filter.type;
|
||||||
|
|
||||||
var ul = this.searchFiltersContainer;
|
var ul = this.searchFiltersContainer;
|
||||||
ul.appendChild( li );
|
ul.appendChild( li );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue