fix aspect's select_all deselect_all

This commit is contained in:
Fabián Rodríguez 2012-12-28 15:58:01 -02:00
parent 53ba55c9ca
commit 8d202e481b

View file

@ -7,9 +7,14 @@ app.views.AspectsList = app.views.Base.extend({
'click .toggle_selector' : 'toggleAll' 'click .toggle_selector' : 'toggleAll'
}, },
initialize: function(){
this.collection.on('change', this.toggleSelector, this);
},
postRenderTemplate: function() { postRenderTemplate: function() {
this.collection.each(this.appendAspect, this); this.collection.each(this.appendAspect, this);
this.$('a[rel*=facebox]').facebox(); this.$('a[rel*=facebox]').facebox();
this.toggleSelector();
}, },
appendAspect: function(aspect) { appendAspect: function(aspect) {