summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarren Smith <garren.smith@gmail.com>2013-12-10 17:41:20 +0200
committerGarren Smith <garren.smith@gmail.com>2013-12-10 17:42:58 +0200
commit0f3735887b80d6e057abade2703c99f81cd92ca5 (patch)
treec6ca29c0f33a78ac2a6166ea1ebcd02b7c270476
parent6f5580a6811ee07bcb80124956c720a4bc735c4d (diff)
downloadcouchdb-0f3735887b80d6e057abade2703c99f81cd92ca5.tar.gz
Fauxton: Improvements and fixes
-rw-r--r--src/fauxton/app/modules/databases/views.js1
-rw-r--r--src/fauxton/app/modules/documents/views.js4
-rw-r--r--src/fauxton/app/templates/documents/sidebar.html1
3 files changed, 3 insertions, 3 deletions
diff --git a/src/fauxton/app/modules/databases/views.js b/src/fauxton/app/modules/databases/views.js
index 5d46cd30c..7d59ac42d 100644
--- a/src/fauxton/app/modules/databases/views.js
+++ b/src/fauxton/app/modules/databases/views.js
@@ -111,7 +111,6 @@ function(app, Components, FauxtonAPI, Databases) {
dbLimit: this.dbLimit,
el: "input.search-query",
onUpdate: function (item) {
- console.log('boom', item);
that.switchDatabase(null, item);
}
});
diff --git a/src/fauxton/app/modules/documents/views.js b/src/fauxton/app/modules/documents/views.js
index b621e5098..83f8e55b8 100644
--- a/src/fauxton/app/modules/documents/views.js
+++ b/src/fauxton/app/modules/documents/views.js
@@ -976,7 +976,6 @@ function(app, FauxtonAPI, Components, Documents, Databases, pouchdb, resizeColum
if (typeof(options.hasReduce) === 'undefined') {
this.hasReduce = true;
- console.log('set true');
} else {
this.hasReduce = options.hasReduce;
}
@@ -1126,6 +1125,7 @@ function(app, FauxtonAPI, Components, Documents, Databases, pouchdb, resizeColum
this.ddocName = options.ddocName;
this.database = options.database;
this.listenTo(this.collection, 'add', this.ddocAdded);
+ this.DocModel = options.DocModel || Documents.Doc;
},
ddocAdded: function (ddoc) {
@@ -1159,7 +1159,7 @@ function(app, FauxtonAPI, Components, Documents, Databases, pouchdb, resizeColum
views: {},
language: "javascript"
};
- return new Documents.Doc(doc, {database: this.database});
+ return new this.DocModel(doc, {database: this.database});
} else {
var ddocName = this.$('#ddoc').val();
return this.collection.find(function (ddoc) {
diff --git a/src/fauxton/app/templates/documents/sidebar.html b/src/fauxton/app/templates/documents/sidebar.html
index 4becf93f7..8fccc099b 100644
--- a/src/fauxton/app/templates/documents/sidebar.html
+++ b/src/fauxton/app/templates/documents/sidebar.html
@@ -63,5 +63,6 @@ the License.
<li><a id="new-view" href="#<%= database.url('app') %>/new_view" class="new"><i class="icon-plus"></i> New</a></li>
<% } %>
</ul>
+ <div id="extension-navs"></div>
</nav>
</div>