couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [01/15] fauxton commit: updated refs/heads/import-master to 8cb432c
Date Sat, 07 Jun 2014 21:04:25 GMT
Repository: couchdb-fauxton
Updated Branches:
  refs/heads/import-master 6827677fa -> 8cb432c5f


Fauxton: Hide preview functionality until we improve it


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/ccc03b69
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/ccc03b69
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/ccc03b69

Branch: refs/heads/import-master
Commit: ccc03b6971c7add03a6e7f056ed7107cb5154a4a
Parents: 6827677
Author: Garren Smith <garren.smith@gmail.com>
Authored: Fri May 16 12:10:36 2014 +0200
Committer: Garren Smith <garren.smith@gmail.com>
Committed: Fri May 16 12:10:36 2014 +0200

----------------------------------------------------------------------
 app/addons/documents/templates/view_editor.html |  1 -
 app/addons/documents/views.js                   | 16 +++-------------
 2 files changed, 3 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/ccc03b69/app/addons/documents/templates/view_editor.html
----------------------------------------------------------------------
diff --git a/app/addons/documents/templates/view_editor.html b/app/addons/documents/templates/view_editor.html
index 7ba6e23..1a10ff5 100644
--- a/app/addons/documents/templates/view_editor.html
+++ b/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>
             <% } %>

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/ccc03b69/app/addons/documents/views.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/views.js b/app/addons/documents/views.js
index 8d10bd0..c58241c 100644
--- a/app/addons/documents/views.js
+++ b/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
       };
     }
   });


Mime
View raw message