Skip to content

Commit

Permalink
Fixes #711
Browse files Browse the repository at this point in the history
  • Loading branch information
darylhedley committed Jun 9, 2015
1 parent be0a2be commit 5cd333f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ define(function(require) {

setupSubViews: function() {
this.search = {};
var assetType = this.options.assetType.replace('Asset:', '');
// Replace Asset and : so we can have both filtered and all asset types
var assetType = this.options.assetType.replace('Asset', '').replace(':', '');
var filters = [assetType];
this.search.assetType = { $in: filters };
// Push collection through to collection view
Expand Down
1 change: 1 addition & 0 deletions frontend/src/core/scaffold/views/scaffoldAssetView.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ define(function(require) {
Origin.scaffold.addCustomField('Asset:audio', ScaffoldAssetView);
Origin.scaffold.addCustomField('Asset:video', ScaffoldAssetView);
Origin.scaffold.addCustomField('Asset:other', ScaffoldAssetView);
Origin.scaffold.addCustomField('Asset', ScaffoldAssetView);
})


Expand Down

0 comments on commit 5cd333f

Please sign in to comment.