Repository: couchdb-fauxton Updated Branches: refs/heads/master 6236556ea -> cddf2ef04
changes: always remove filter tab remove filtertab when switching from changes to "All Documents" Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/cddf2ef0 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/cddf2ef0 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/cddf2ef0 Branch: refs/heads/master Commit: cddf2ef042eacb13e1ff4e8457ad9488e84dff67 Parents: 6236556 Author: Robert Kowalski <[email protected]> Authored: Mon Jan 26 15:57:17 2015 +0100 Committer: Robert Kowalski <[email protected]> Committed: Tue Jan 27 13:48:21 2015 +0100 ---------------------------------------------------------------------- app/addons/documents/routes-documents.js | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/cddf2ef0/app/addons/documents/routes-documents.js ---------------------------------------------------------------------- diff --git a/app/addons/documents/routes-documents.js b/app/addons/documents/routes-documents.js index 74eb48b..5b07b1f 100644 --- a/app/addons/documents/routes-documents.js +++ b/app/addons/documents/routes-documents.js @@ -184,6 +184,8 @@ function(app, FauxtonAPI, BaseRoute, Documents, Changes, Index, DocEditor, Datab } this.viewEditor && this.viewEditor.remove(); + this.headerView && this.headerView.remove(); + this.database.allDocs.paging.pageSize = this.getDocPerPageLimit(urlParams, parseInt(docParams.limit, 10)); if (!docParams) { @@ -529,6 +531,9 @@ function(app, FauxtonAPI, BaseRoute, Documents, Changes, Index, DocEditor, Datab if (this.footer) { this.removeView('#footer'); } + if (this.headerView) { + this.removeView('#dashboard-upper-content'); + } // we're no longer interested in listening to the lookahead tray event on this route object this.stopListening(FauxtonAPI.Events, 'lookaheadTray:update', this.onSelectDatabase);
