You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ga...@apache.org on 2013/08/13 15:27:21 UTC
[4/4] git commit: updated refs/heads/master to 4d1dd2d
Fauxton: bug fix on view editor
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/4d1dd2d5
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/4d1dd2d5
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/4d1dd2d5
Branch: refs/heads/master
Commit: 4d1dd2d55d5d99cb4c4f08fe1171549ab25d4997
Parents: 1490f18
Author: Garren Smith <ga...@gmail.com>
Authored: Tue Aug 13 15:13:36 2013 +0200
Committer: Garren Smith <ga...@gmail.com>
Committed: Tue Aug 13 15:26:53 2013 +0200
----------------------------------------------------------------------
src/fauxton/Gruntfile.js | 6 +++---
src/fauxton/app/modules/documents/resources.js | 4 ++++
src/fauxton/app/templates/documents/view_editor.html | 2 +-
3 files changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/4d1dd2d5/src/fauxton/Gruntfile.js
----------------------------------------------------------------------
diff --git a/src/fauxton/Gruntfile.js b/src/fauxton/Gruntfile.js
index e9cb13c..9cb7e2e 100644
--- a/src/fauxton/Gruntfile.js
+++ b/src/fauxton/Gruntfile.js
@@ -214,9 +214,9 @@ module.exports = function(grunt) {
port: 8000,
proxy: {
target: {
- host: 'garrensmith.cloudant.com',
- port: 443,
- https: true
+ host: 'localhost',
+ port: 5984,
+ https: false
},
// This sets the Host header in the proxy so that you can use external
// CouchDB instances and not have the Host set to 'localhost'
http://git-wip-us.apache.org/repos/asf/couchdb/blob/4d1dd2d5/src/fauxton/app/modules/documents/resources.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/modules/documents/resources.js b/src/fauxton/app/modules/documents/resources.js
index 826b44a..0a80ad8 100644
--- a/src/fauxton/app/modules/documents/resources.js
+++ b/src/fauxton/app/modules/documents/resources.js
@@ -22,6 +22,10 @@ function(app, FauxtonAPI) {
Documents.Doc = Backbone.Model.extend({
idAttribute: "_id",
+ defaults: {
+ views: {}
+ },
+
url: function(context) {
if (context === "app") {
return this.getDatabase().url("app") + "/" + this.safeID();
http://git-wip-us.apache.org/repos/asf/couchdb/blob/4d1dd2d5/src/fauxton/app/templates/documents/view_editor.html
----------------------------------------------------------------------
diff --git a/src/fauxton/app/templates/documents/view_editor.html b/src/fauxton/app/templates/documents/view_editor.html
index fd35873..08b8ad4 100644
--- a/src/fauxton/app/templates/documents/view_editor.html
+++ b/src/fauxton/app/templates/documents/view_editor.html
@@ -48,7 +48,7 @@ the License.
</select>
</div>
</div>
- <div id="new-ddoc-section" class="span5" style="display:none">
+ <div id="new-ddoc-section" class="span5 offset1" style="display:none">
<label class="control-label" for="new-ddoc"> _design/ </label>
<div class="controls">
<input type="text" id="new-ddoc" placeholder="newDesignDoc">