Browse Source

Rerender assets when the collection is resetted

pull/187/head
Artur Arseniev 9 years ago
parent
commit
7632e08974
  1. 5
      src/asset_manager/view/AssetsView.js

5
src/asset_manager/view/AssetsView.js

@ -32,8 +32,9 @@ module.exports = Backbone.View.extend({
this.config = o.config; this.config = o.config;
this.pfx = this.config.stylePrefix || ''; this.pfx = this.config.stylePrefix || '';
this.ppfx = this.config.pStylePrefix || ''; this.ppfx = this.config.pStylePrefix || '';
this.listenTo( this.collection, 'add', this.addToAsset ); this.listenTo(this.collection, 'add', this.addToAsset );
this.listenTo( this.collection, 'deselectAll', this.deselectAll ); this.listenTo(this.collection, 'deselectAll', this.deselectAll);
this.listenTo(this.collection, 'reset', this.render);
this.className = this.pfx + 'assets'; this.className = this.pfx + 'assets';
this.events = {}; this.events = {};

Loading…
Cancel
Save