couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [13/19] fauxton commit: updated refs/heads/import-master to 4ab2cde
Date Thu, 17 Apr 2014 08:37:13 GMT
Fauxton: remove the hidden tabs

Closes #200


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

Branch: refs/heads/import-master
Commit: 95e1fec8979a4d0170762ea15363139597a602df
Parents: f337f8d
Author: Robert Kowalski <rok@kowalski.gd>
Authored: Mon Mar 31 22:59:32 2014 +0200
Committer: suelockwood <deathbear@apache.org>
Committed: Mon Apr 14 14:40:15 2014 -0400

----------------------------------------------------------------------
 app/addons/documents/routes.js           |  6 ------
 app/addons/documents/templates/tabs.html | 18 ----------------
 app/addons/documents/views.js            | 30 ---------------------------
 3 files changed, 54 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/95e1fec8/app/addons/documents/routes.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/routes.js b/app/addons/documents/routes.js
index 3bf8f7e..5497a30 100644
--- a/app/addons/documents/routes.js
+++ b/app/addons/documents/routes.js
@@ -485,12 +485,6 @@ function(app, FauxtonAPI, Documents, Databases) {
       var docParams = app.getParams();
 
       this.database.buildChanges(docParams);
-
-      this.setView("#tabs", new Documents.Views.Tabs({
-        collection: this.designDocs,
-        database: this.database,
-        active_id: 'changes'
-      }));
     },
 
     changes: function (event) {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/95e1fec8/app/addons/documents/templates/tabs.html
----------------------------------------------------------------------
diff --git a/app/addons/documents/templates/tabs.html b/app/addons/documents/templates/tabs.html
deleted file mode 100644
index f8b0c4b..0000000
--- a/app/addons/documents/templates/tabs.html
+++ /dev/null
@@ -1,18 +0,0 @@
-<!--
-Licensed under the Apache License, Version 2.0 (the "License"); you may not
-use this file except in compliance with the License. You may obtain a copy of
-the License at
-
-  http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-License for the specific language governing permissions and limitations under
-the License.
--->
-
-<ul class="nav nav-tabs">
-  <li class="active"><a href="<%= db_url %>">Docs</a></li>
-  <li id="changes"><a  href="<%= changes_url %>">Changes</a></li>
-</ul>

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/95e1fec8/app/addons/documents/views.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/views.js b/app/addons/documents/views.js
index eba2b1b..7892d18 100644
--- a/app/addons/documents/views.js
+++ b/app/addons/documents/views.js
@@ -34,36 +34,6 @@ define([
 function(app, FauxtonAPI, Components, Documents, Databases, pouchdb,
          resizeColumns, beautify, prettify, ZeroClipboard) {
   var Views = {};
-  Views.Tabs = FauxtonAPI.View.extend({
-    template: "addons/documents/templates/tabs",
-    initialize: function(options){
-      this.collection = options.collection;
-      this.database = options.database;
-      this.active_id = options.active_id;
-    },
-
-    serialize: function () {
-      return {
-        // TODO make this not hard coded here
-        changes_url: '#' + this.database.url('changes'),
-        db_url: '#' + this.database.url('index') + '?limit=' + Databases.DocLimit,
-      };
-    },
-
-    beforeRender: function(manage) {
-      this.insertView("#search", new Views.SearchBox({
-        collection: this.collection,
-        database: this.database.id
-      }));
-    },
-
-    afterRender: function () {
-      if (this.active_id) {
-        this.$('.active').removeClass('active');
-        this.$('#'+this.active_id).addClass('active');
-      }
-    }
-  });
 
   Views.SearchBox = FauxtonAPI.View.extend({
     template: "addons/documents/templates/search",


Mime
View raw message