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 2016/09/01 15:09:36 UTC

[2/4] fauxton commit: updated refs/heads/master to e799551

given the tray is not open do not fire tray events to close

PR: #757
PR-URL: https://github.com/apache/couchdb-fauxton/pull/757
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/e617ad26
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/e617ad26
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/e617ad26

Branch: refs/heads/master
Commit: e617ad26a8cc98b1db027305dc3410c21383d805
Parents: b2c7fc2
Author: Robert Kowalski <ro...@apache.org>
Authored: Wed Aug 3 13:51:37 2016 +0200
Committer: Robert Kowalski <ro...@apache.org>
Committed: Thu Sep 1 17:09:18 2016 +0200

----------------------------------------------------------------------
 app/addons/components/react-components.react.jsx | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/e617ad26/app/addons/components/react-components.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/components/react-components.react.jsx b/app/addons/components/react-components.react.jsx
index 2938cbc..d1dcbf1 100644
--- a/app/addons/components/react-components.react.jsx
+++ b/app/addons/components/react-components.react.jsx
@@ -1395,6 +1395,11 @@ var APIBar = React.createClass({
 
   componentDidMount: function () {
     $('body').on('click.APIBar', function (e) {
+
+      if (!$('.show-tray.api-bar-tray').length) {
+        return;
+      }
+
       if ($(e.target).closest('.api-bar-tray,.control-toggle-api-url').length === 0) {
         Actions.toggleApiBarVisibility(false);
       }