From 19eea226a654a6dc96c0556301ec880303632dad Mon Sep 17 00:00:00 2001 From: rr- Date: Sat, 10 Sep 2016 11:15:43 +0200 Subject: [PATCH] client/search: fix dangling 'no data to show' Concerned only endless scroll --- client/js/views/endless_page_view.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/js/views/endless_page_view.js b/client/js/views/endless_page_view.js index 6e6787f..c9a63b4 100644 --- a/client/js/views/endless_page_view.js +++ b/client/js/views/endless_page_view.js @@ -17,6 +17,7 @@ class EndlessPageView { this._working = 0; this._init = false; + this.clearMessages(); views.emptyContent(this._pagesHolderNode); this.threshold = window.innerHeight / 3; @@ -165,6 +166,10 @@ class EndlessPageView { return pageNode; } + clearMessages() { + views.clearMessages(this._hostNode); + } + showSuccess(message) { views.showSuccess(this._hostNode, message); }