You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ro...@apache.org on 2014/12/11 15:58:03 UTC
fauxton commit: updated refs/heads/master to a762e7c
Repository: couchdb-fauxton
Updated Branches:
refs/heads/master 496e16404 -> a762e7cae
Don't display footer on metadata & changes page
Fixes the accidental display of the footer on the metadata and
changes page.
COUCHDB-2502
Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/a762e7ca
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/a762e7ca
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/a762e7ca
Branch: refs/heads/master
Commit: a762e7cae4902b34fb3fbf8f2c8c0c7449798cea
Parents: 496e164
Author: Robert Kowalski <ro...@apache.org>
Authored: Thu Dec 11 12:00:47 2014 +0100
Committer: Robert Kowalski <ro...@apache.org>
Committed: Thu Dec 11 12:00:47 2014 +0100
----------------------------------------------------------------------
app/addons/documents/routes-documents.js | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/a762e7ca/app/addons/documents/routes-documents.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/routes-documents.js b/app/addons/documents/routes-documents.js
index 3b49878..cbec036 100644
--- a/app/addons/documents/routes-documents.js
+++ b/app/addons/documents/routes-documents.js
@@ -109,8 +109,6 @@ function(app, FauxtonAPI, Documents, Changes, Index, DocEditor, Databases, Resou
this.database = new Databases.Model({id: this.databaseName});
this.allDatabases = new Databases.List();
- this.footer = this.setView("#footer", new Documents.Views.Footer());
-
this.designDocs = new Documents.AllDocs(null, {
database: this.database,
paging: {
@@ -199,7 +197,8 @@ function(app, FauxtonAPI, Documents, Changes, Index, DocEditor, Databases, Resou
}, menuLinks);
},
- designDocMetadata: function(database, ddoc){
+ designDocMetadata: function (database, ddoc) {
+ this.footer && this.footer.remove();
this.toolsView && this.toolsView.remove();
this.viewEditor && this.viewEditor.remove();
@@ -252,6 +251,8 @@ function(app, FauxtonAPI, Documents, Changes, Index, DocEditor, Databases, Resou
return;
}
+ this.footer = this.setView('#footer', new Documents.Views.Footer());
+
this.leftheader.updateCrumbs(crumbs.allDocs(this.database));
this.database.buildAllDocs(docParams);
@@ -315,6 +316,8 @@ function(app, FauxtonAPI, Documents, Changes, Index, DocEditor, Databases, Resou
viewName = viewName.replace(/\?.*$/,'');
+ this.footer = this.setView('#footer', new Documents.Views.Footer());
+
this.indexedDocs = new Documents.IndexCollection(null, {
database: this.database,
design: decodeDdoc,
@@ -409,6 +412,7 @@ function(app, FauxtonAPI, Documents, Changes, Index, DocEditor, Databases, Resou
newViewEditor: function (database, designDoc) {
var params = app.getParams();
+ this.footer && this.footer.remove();
this.toolsView && this.toolsView.remove();
this.documentsView && this.documentsView.remove();
@@ -543,6 +547,7 @@ function(app, FauxtonAPI, Documents, Changes, Index, DocEditor, Databases, Resou
filterView: this.filterView
}));
+ this.footer && this.footer.remove();
this.toolsView && this.toolsView.remove();
this.viewEditor && this.viewEditor.remove();