Skip to content

Commit

Permalink
save some typing when getting the admin object. Mark the type column …
Browse files Browse the repository at this point in the history
…as not sortable since it isn't an asset property.
  • Loading branch information
perlDreamer committed Oct 2, 2011
1 parent f20302c commit 3de9a22
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions www/extras/admin/admin.js
Expand Up @@ -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
},
Expand Down Expand Up @@ -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 );
Expand Down

0 comments on commit 3de9a22

Please sign in to comment.