diff options
author | Fatih Acet <acetfatih@gmail.com> | 2016-07-18 20:04:16 +0300 |
---|---|---|
committer | Jacob Schatz <jschatz1@gmail.com> | 2016-07-20 16:36:56 +0300 |
commit | 3e24a102976586a4417820694580eb9b72defb3d (patch) | |
tree | 242e46515d850f0fa80e69597dbe8028a9b25f36 /app/assets | |
parent | 12c4fb1b0f5620fdda7f358280c3feeb3ea7d47f (diff) |
Prevent toggling sidebar when clipboard icon clicked.
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/right_sidebar.js.coffee | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/right_sidebar.js.coffee b/app/assets/javascripts/right_sidebar.js.coffee index 12340bbce54..0c95301e380 100644 --- a/app/assets/javascripts/right_sidebar.js.coffee +++ b/app/assets/javascripts/right_sidebar.js.coffee @@ -120,6 +120,9 @@ class @Sidebar i.show() sidebarCollapseClicked: (e) -> + + return if $(e.currentTarget).hasClass('dont-change-state') + sidebar = e.data e.preventDefault() $block = $(@).closest('.block') |