fix aspect's select_all deselect_all
This commit is contained in:
parent
53ba55c9ca
commit
8d202e481b
1 changed files with 5 additions and 0 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue