From 91decaf9fe6f43cfa1b4d0286499edd4b5c7b86e Mon Sep 17 00:00:00 2001 From: rr- Date: Fri, 16 Sep 2016 21:31:09 +0200 Subject: [PATCH] client/tags: fix exiting mass tag Exiting mass tag didn't remove [+] [-] buttons on post thumbnails. --- client/js/views/posts_header_view.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/js/views/posts_header_view.js b/client/js/views/posts_header_view.js index c0f86ddb..37e58f1f 100644 --- a/client/js/views/posts_header_view.js +++ b/client/js/views/posts_header_view.js @@ -88,6 +88,7 @@ class PostsHeaderView extends events.EventTarget { this.dispatchEvent(new CustomEvent('navigate', {detail: {parameters: { query: this._ctx.parameters.query, page: this._ctx.parameters.page, + tag: null, }}})); } @@ -103,8 +104,8 @@ class PostsHeaderView extends events.EventTarget { new CustomEvent( 'navigate', { detail: { - parameters: - Object.assign({}, this._ctx.parameters, {page: 1}), + parameters: Object.assign( + {}, this._ctx.parameters, {tag: null, page: 1}), }, })); } @@ -121,6 +122,8 @@ class PostsHeaderView extends events.EventTarget { if (this._massTagInputNode) { parameters.tag = this._massTagInputNode.value; this._massTagInputNode.blur(); + } else { + parameters.tag = null; } this.dispatchEvent( new CustomEvent('navigate', {detail: {parameters: parameters}}));