From 3de9a22bc4a6b63eb78031cc9c2cde7cfd2c1d96 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Sat, 1 Oct 2011 20:09:25 -0700 Subject: [PATCH] save some typing when getting the admin object. Mark the type column as not sortable since it isn't an asset property. --- www/extras/admin/admin.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/www/extras/admin/admin.js b/www/extras/admin/admin.js index 9fee69aad..3c1a4d494 100644 --- a/www/extras/admin/admin.js +++ b/www/extras/admin/admin.js @@ -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 );