Skip to content

Commit c22ae21

Browse files
rueckstiesskangas
authored andcommitted
load documents on 'open' click.
1 parent cf4af66 commit c22ae21

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

scout-ui/src/home/collection.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ module.exports = AmpersandView.extend({
6262
hook: 'stats-subview',
6363
prepareView: function(el) {
6464
return new CollectionStatsView({
65-
el: el,
66-
parent: this,
67-
model: this.model
68-
});
65+
el: el,
66+
parent: this,
67+
model: this.model
68+
});
6969
}
7070
},
7171
fields: {
@@ -84,21 +84,21 @@ module.exports = AmpersandView.extend({
8484
hook: 'refine-bar',
8585
prepareView: function(el) {
8686
return new RefineBarView({
87-
el: el,
88-
parent: this,
89-
model: app.queryOptions
90-
});
87+
el: el,
88+
parent: this,
89+
model: app.queryOptions
90+
});
9191
}
9292
},
9393
documents: {
94-
waitFor: 'model.documents',
94+
waitFor: 'open',
9595
hook: 'documents-subview',
9696
prepareView: function(el) {
9797
return new DocumentListView({
98-
el: el,
99-
parent: this,
100-
collection: this.model.documents
101-
});
98+
el: el,
99+
parent: this,
100+
collection: this.model.documents
101+
});
102102
}
103103
}
104104
}

0 commit comments

Comments
 (0)