client/posts: go back to page 1 on safety change

This commit is contained in:
rr- 2016-08-28 23:11:08 +02:00
parent cf1d15354d
commit e4f9c26776

View file

@ -101,7 +101,12 @@ class PostsHeaderView extends events.EventTarget {
settings.save(browsingSettings, true);
this.dispatchEvent(
new CustomEvent(
'navigate', {detail: {parameters: this._ctx.parameters}}));
'navigate', {
detail: {
parameters:
Object.assign({}, this._ctx.parameters, {page: 1}),
},
}));
}
_evtFormSubmit(e) {