You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ro...@apache.org on 2015/06/23 15:43:54 UTC
[2/2] fauxton commit: updated refs/heads/master to bf1c92c
sidebar: remove dead code
PR: #471
PR-URL: https://github.com/apache/couchdb-fauxton/pull/471
Reviewed-By: Michelle Phung <mi...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/eec9de7b
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/eec9de7b
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/eec9de7b
Branch: refs/heads/master
Commit: eec9de7b95e976f37bdc91241a853e8020a60129
Parents: 7be921a
Author: Robert Kowalski <ro...@apache.org>
Authored: Tue Jun 23 14:29:40 2015 +0200
Committer: Robert Kowalski <ro...@apache.org>
Committed: Tue Jun 23 15:43:51 2015 +0200
----------------------------------------------------------------------
app/addons/documents/sidebar/sidebar.react.jsx | 28 ---------------------
1 file changed, 28 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/eec9de7b/app/addons/documents/sidebar/sidebar.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/documents/sidebar/sidebar.react.jsx b/app/addons/documents/sidebar/sidebar.react.jsx
index 8e99842..143e6e2 100644
--- a/app/addons/documents/sidebar/sidebar.react.jsx
+++ b/app/addons/documents/sidebar/sidebar.react.jsx
@@ -27,33 +27,6 @@ function (app, FauxtonAPI, React, Stores, Actions, Components, DocumentViews) {
var store = Stores.sidebarStore;
var LoadLines = Components.LoadLines;
- var SidebarToggle = React.createClass({
- getInitialState: function () {
- return {
- hidden: false
- };
- },
-
- toggle: function (e) {
- e.preventDefault();
- var newHiddenState = !this.state.hidden;
- this.setState({hidden: newHiddenState});
- var $dashboard = $('#dashboard-content');
-
- if (newHiddenState) {
- $dashboard.animate({left: '210px'}, 300);
- } else {
- $dashboard.animate({left: '550px'}, 300);
- }
-
- },
-
- render: function () {
- return null;
- }
-
- });
-
var MainSidebar = React.createClass({
getNewButtonLinks: function () { //these are links for the sidebar '+' on All Docs and All Design Docs
@@ -427,7 +400,6 @@ function (app, FauxtonAPI, React, Stores, Actions, Components, DocumentViews) {
return (
<nav className="sidenav">
- <SidebarToggle />
<MainSidebar isActive={this.isActive} databaseName={this.state.databaseName} />
<DesignDocList
toggle={Actions.toggleContent}