Skip to content

Commit 3de9a22

Browse files
committedOct 2, 2011
save some typing when getting the admin object. Mark the type column as not sortable since it isn't an asset property.
1 parent f20302c commit 3de9a22

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎www/extras/admin/admin.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -1412,25 +1412,25 @@ WebGUI.Admin.AssetTable
14121412
},
14131413
{
14141414
key: 'title',
1415-
label: window.admin.i18n.get('Asset', '99'),
1415+
label: admin.i18n.get('Asset', '99'),
14161416
formatter: bind( this, this.formatTitle ),
14171417
sortable: true
14181418
},
14191419
{
14201420
key: 'type',
1421-
label: window.admin.i18n.get('Asset','type'),
1422-
sortable: true,
1421+
label: admin.i18n.get('Asset','type'),
1422+
sortable: false,
14231423
formatter: bind( this, this.formatType )
14241424
},
14251425
{
14261426
key: 'revisionDate',
1427-
label: window.admin.i18n.get('Asset','revision date' ),
1427+
label: admin.i18n.get('Asset','revision date' ),
14281428
formatter: bind( this, this.formatRevisionDate ),
14291429
sortable: true
14301430
},
14311431
{
14321432
key: 'assetSize',
1433-
label: window.admin.i18n.get('Asset','size' ),
1433+
label: admin.i18n.get('Asset','size' ),
14341434
formatter: bind( this, this.formatAssetSize ),
14351435
sortable: true
14361436
},
@@ -2511,7 +2511,7 @@ WebGUI.Admin.Search.prototype.addFilter
25112511

25122512
var type = menuitem.value;
25132513
filter.type = type;
2514-
li.className = "filter_" + filter.type;
2514+
li.mlassName = "filter_" + filter.type;
25152515

25162516
var ul = this.searchFiltersContainer;
25172517
ul.appendChild( li );

0 commit comments

Comments
 (0)
Please sign in to comment.