Fauxton: Hide preview functionality until we improve it
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/d8bd7ee0 Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/d8bd7ee0 Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/d8bd7ee0 Branch: refs/heads/1.6.x Commit: d8bd7ee0d22c403c314d18021e8bd2da8fdf2015 Parents: 4a614b3 Author: Garren Smith <[email protected]> Authored: Fri May 16 12:10:36 2014 +0200 Committer: Garren Smith <[email protected]> Committed: Fri May 16 12:10:36 2014 +0200 ---------------------------------------------------------------------- .../app/addons/documents/templates/view_editor.html | 1 - src/fauxton/app/addons/documents/views.js | 16 +++------------- 2 files changed, 3 insertions(+), 14 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/d8bd7ee0/src/fauxton/app/addons/documents/templates/view_editor.html ---------------------------------------------------------------------- diff --git a/src/fauxton/app/addons/documents/templates/view_editor.html b/src/fauxton/app/addons/documents/templates/view_editor.html index 7ba6e23..1a10ff5 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 & 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> <% } %> http://git-wip-us.apache.org/repos/asf/couchdb/blob/d8bd7ee0/src/fauxton/app/addons/documents/views.js ---------------------------------------------------------------------- diff --git a/src/fauxton/app/addons/documents/views.js b/src/fauxton/app/addons/documents/views.js index 8d10bd0..c58241c 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 }; } });
