summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarren Smith <garren.smith@gmail.com>2014-05-16 12:10:36 +0200
committerGarren Smith <garren.smith@gmail.com>2014-05-16 12:10:36 +0200
commitd8bd7ee0d22c403c314d18021e8bd2da8fdf2015 (patch)
tree85cabe8ba2731998fb02af6695797732cceecaab
parent4a614b39719035042e0b124d8a91d6cc285a643f (diff)
downloadcouchdb-d8bd7ee0d22c403c314d18021e8bd2da8fdf2015.tar.gz
Fauxton: Hide preview functionality until we improve it
-rw-r--r--src/fauxton/app/addons/documents/templates/view_editor.html1
-rw-r--r--src/fauxton/app/addons/documents/views.js16
2 files changed, 3 insertions, 14 deletions
diff --git a/src/fauxton/app/addons/documents/templates/view_editor.html b/src/fauxton/app/addons/documents/templates/view_editor.html
index 7ba6e23d1..1a10ff5fb 100644
--- a/src/fauxton/app/addons/documents/templates/view_editor.html
+++ b/src/fauxton/app/addons/documents/templates/view_editor.html
@@ -74,7 +74,6 @@ the License.
<div class="control-group">
<button class="btn btn-success save"><i class="icon fonticon-circle-check"></i> Save &amp; Build Index</button>
- <button class="btn btn-info preview">Preview</button>
<% if (!newView) { %>
<button class="btn btn-danger delete"><i class="icon fonticon-circle-x"></i> Delete</button>
<% } %>
diff --git a/src/fauxton/app/addons/documents/views.js b/src/fauxton/app/addons/documents/views.js
index 8d10bd04d..c58241c98 100644
--- a/src/fauxton/app/addons/documents/views.js
+++ b/src/fauxton/app/addons/documents/views.js
@@ -1048,11 +1048,11 @@ function(app, FauxtonAPI, Components, Documents, Databases, pouchdb,
this.hasReduce = options.hasReduce;
}
- if (typeof(options.showPreview) === 'undefined') {
+ /*if (typeof(options.showPreview) === 'undefined') {
this.showPreview = true;
} else {
this.showPreview = options.showPreview;
- }
+ }*/
},
events: {
@@ -1188,7 +1188,6 @@ function(app, FauxtonAPI, Components, Documents, Databases, pouchdb,
return {params: params, errorParams: errorParams};
},
- //these are the saaaaameeeeeeee
updateView: function (event) {
event.preventDefault();
var params = this.queryParams();
@@ -1196,13 +1195,6 @@ function(app, FauxtonAPI, Components, Documents, Databases, pouchdb,
this.updateViewFn(event, params);
},
- // previewView: function (event) {
- // var params = this.queryParams();
- // if (!params) { return;}
- // this.previewFn(event, params);
- // },
-
-
updateFilters: function(event) {
event.preventDefault();
var $ele = $(event.currentTarget);
@@ -1283,12 +1275,10 @@ function(app, FauxtonAPI, Components, Documents, Databases, pouchdb,
}, this);
},
-
-
serialize: function () {
return {
hasReduce: this.hasReduce,
- showPreview: this.showPreview
+ showPreview: false
};
}
});