mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 01:51:40 -05:00
fix query terms not being passed to daily view bug
This commit is contained in:
parent
20bb2334e3
commit
19c2a5ff78
2 changed files with 13 additions and 11 deletions
|
@ -56,7 +56,7 @@ jsx@0.1.6
|
|||
kadira:blaze-layout@2.1.0
|
||||
kadira:debug@2.2.3
|
||||
kadira:dochead@1.1.0
|
||||
kadira:flow-router@2.6.0
|
||||
kadira:flow-router@2.6.1
|
||||
kestanous:herald@1.3.0
|
||||
kestanous:herald-email@0.5.0
|
||||
launch-screen@1.0.2
|
||||
|
|
|
@ -22,16 +22,18 @@ Template.posts_daily.helpers({
|
|||
var instance = Template.instance();
|
||||
var daysCount = instance.daysCount.get();
|
||||
|
||||
// var days = Template.parentData(1);
|
||||
var context = {
|
||||
terms: {
|
||||
view: "top",
|
||||
date: this.date,
|
||||
after: moment(this.date).format("YYYY-MM-DD"),
|
||||
before: moment(this.date).format("YYYY-MM-DD"),
|
||||
enableCache: daysCount <= 15 ? true : false // only cache first 15 days
|
||||
}
|
||||
};
|
||||
FlowRouter.watchPathChange();
|
||||
var terms = _.clone(FlowRouter.current().queryParams);
|
||||
|
||||
terms = _.extend(terms, {
|
||||
view: "top",
|
||||
date: this.date,
|
||||
after: moment(this.date).format("YYYY-MM-DD"),
|
||||
before: moment(this.date).format("YYYY-MM-DD"),
|
||||
enableCache: daysCount <= 15 ? true : false // only cache first 15 days
|
||||
});
|
||||
|
||||
var context = {terms: terms};
|
||||
return context;
|
||||
},
|
||||
loadMoreHandler: function () {
|
||||
|
|
Loading…
Add table
Reference in a new issue