couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robertkowal...@apache.org
Subject fauxton commit: updated refs/heads/master to eac686e
Date Thu, 30 Oct 2014 18:08:42 GMT
Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master 4eec2c8b9 -> eac686e44


Just hide the rightHeader on changes

Fixes COUCHDB-2419


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

Branch: refs/heads/master
Commit: eac686e443a7a926dd11c74464ddb73f784448f5
Parents: 4eec2c8
Author: Robert Kowalski <robertkowalski@apache.org>
Authored: Thu Oct 30 12:28:03 2014 +0100
Committer: Robert Kowalski <robertkowalski@apache.org>
Committed: Thu Oct 30 18:54:07 2014 +0100

----------------------------------------------------------------------
 app/addons/documents/routes-documents.js | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/eac686e4/app/addons/documents/routes-documents.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/routes-documents.js b/app/addons/documents/routes-documents.js
index a7d377d..56d0845 100644
--- a/app/addons/documents/routes-documents.js
+++ b/app/addons/documents/routes-documents.js
@@ -107,6 +107,10 @@ function(app, FauxtonAPI, Documents, Changes, Index, DocEditor, Databases,
Resou
         }
       });
 
+      this.rightHeader = this.setView("#right-header", new Documents.Views.RightAllDocsHeader({
+         database: this.database
+      }));
+
       this.leftheader = this.setView("#breadcrumbs", new Components.LeftHeader({
         crumbs: crumbs.allDocs(this.database),
         dropdownMenu: this.setUpDropdown()
@@ -219,10 +223,6 @@ function(app, FauxtonAPI, Documents, Changes, Index, DocEditor, Databases,
Resou
         return;
       }
 
-      this.rightHeader = this.setView("#right-header", new Documents.Views.RightAllDocsHeader({
-        database: this.database
-      }));
-
       this.leftheader.updateCrumbs(crumbs.allDocs(this.database));
       this.database.buildAllDocs(docParams);
 
@@ -298,9 +298,6 @@ function(app, FauxtonAPI, Documents, Changes, Index, DocEditor, Databases,
Resou
        return [this.indexedDocs.urlRef("apiurl", urlParams), "docs"];
       };
 
-      this.rightHeader = this.setView("#right-header", new Documents.Views.RightAllDocsHeader({
-        database: this.database
-      }));
       this.rightHeader.showQueryOptions();
       this.rightHeader.resetQueryOptions({
         queryParams: urlParams,
@@ -455,9 +452,6 @@ function(app, FauxtonAPI, Documents, Changes, Index, DocEditor, Databases,
Resou
 
     changes: function () {
       var docParams = app.getParams();
-
-      this.rightHeader && this.rightHeader.remove();
-
       this.database.buildChanges(docParams);
 
       this.changesView = this.setView("#dashboard-lower-content", new Changes.Changes({
@@ -477,6 +471,7 @@ function(app, FauxtonAPI, Documents, Changes, Index, DocEditor, Databases,
Resou
 
       this.sidebar.setSelectedTab('changes');
       this.leftheader.updateCrumbs(crumbs.changes(this.database));
+      this.rightHeader.hideQueryOptions();
 
       this.apiUrl = function () {
         return [this.database.url("changes-apiurl"), this.database.documentation()];


Mime
View raw message