You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2013/09/09 11:53:42 UTC
[22/50] [abbrv] git commit: updated refs/heads/1867-feature-plugins
to 8aad450
Document routes lost their selected headers for primary nav
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/32153bf9
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/32153bf9
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/32153bf9
Branch: refs/heads/1867-feature-plugins
Commit: 32153bf9fb0b00c6e48bd5fccfd0a7e7f1853ea4
Parents: b5c044f
Author: suelockwood <de...@gmail.com>
Authored: Tue Aug 20 16:52:05 2013 -0400
Committer: Jan Lehnardt <ja...@apache.org>
Committed: Mon Sep 9 11:16:43 2013 +0200
----------------------------------------------------------------------
src/fauxton/app/modules/documents/routes.js | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/32153bf9/src/fauxton/app/modules/documents/routes.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/modules/documents/routes.js b/src/fauxton/app/modules/documents/routes.js
index 6a7d4b4..23ebc1e 100644
--- a/src/fauxton/app/modules/documents/routes.js
+++ b/src/fauxton/app/modules/documents/routes.js
@@ -28,6 +28,7 @@ function(app, FauxtonAPI, Documents, Databases) {
var DocEditorRouteObject = FauxtonAPI.RouteObject.extend({
layout: "one_pane",
disableLoader: true,
+ selectedHeader: "Databases",
initialize: function(route, masterLayout, options) {
var databaseName = options[0], docID = options[1]||'new';
@@ -132,12 +133,13 @@ function(app, FauxtonAPI, Documents, Databases) {
routes: {
"database/:database/new": "code_editor"
},
+ selectedHeader: "Databases",
});
var DocumentsRouteObject = FauxtonAPI.RouteObject.extend({
layout: "with_tabs_sidebar",
- navSelector: '.databases',
+ selectedHeader: "Databases",
routes: {
"database/:database/_all_docs(:extra)": "allDocs",
"database/:database/_design/:ddoc/_view/:view": {
@@ -330,7 +332,7 @@ function(app, FauxtonAPI, Documents, Databases) {
var ChangesRouteObject = FauxtonAPI.RouteObject.extend({
layout: "with_tabs",
- navSelector: '.databases',
+ selectedHeader: "Databases",
crumbs: function () {
return [
{"name": "Databases", "link": "/_all_dbs"},