You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by be...@apache.org on 2014/11/14 19:02:24 UTC

fauxton commit: updated refs/heads/master to 4a94481

Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master c43467511 -> 4a944816a


Switch-db-tray does not work with query options

This fixes a problem where using the db tray switch shows incorrect
results. To confirm fix:
1. Open a database (database A) and search for a single key with the
queryoption-tray: you get one document as result
2. use the new tray to switch to another database (database B)
3. you should see that all_docs from database B now shows up as you'd
expect

Closes COUCHDB-2460


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/4a944816
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/4a944816
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/4a944816

Branch: refs/heads/master
Commit: 4a944816a7fc08220a4392055b9f63e552bbe712
Parents: c434675
Author: Benjamin Keen <be...@gmail.com>
Authored: Thu Nov 13 11:04:38 2014 -0800
Committer: Benjamin Keen <be...@gmail.com>
Committed: Fri Nov 14 10:02:02 2014 -0800

----------------------------------------------------------------------
 app/addons/documents/routes-documents.js | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/4a944816/app/addons/documents/routes-documents.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/routes-documents.js b/app/addons/documents/routes-documents.js
index 32523f5..69a13ec 100644
--- a/app/addons/documents/routes-documents.js
+++ b/app/addons/documents/routes-documents.js
@@ -520,6 +520,12 @@ function(app, FauxtonAPI, Documents, Changes, Index, DocEditor, Databases, Resou
     },
 
     cleanup: function () {
+      if (this.documentsView) {
+        this.removeView('#dashboard-lower-content');
+      }
+      if (this.rightHeader) {
+        this.removeView('#right-header');
+      }
       if (this.leftheader) {
         this.removeView('#breadcrumbs');
       }