couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robertkowal...@apache.org
Subject [2/4] fauxton commit: updated refs/heads/master to e799551
Date Thu, 01 Sep 2016 15:09:36 GMT
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 <michellep@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 <robertkowalski@apache.org>
Authored: Wed Aug 3 13:51:37 2016 +0200
Committer: Robert Kowalski <robertkowalski@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);
       }


Mime
View raw message