diff options
author | Fatih Acet <acetfatih@gmail.com> | 2016-07-21 01:57:17 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2016-07-21 01:57:17 +0300 |
commit | 37f9a3117f94f583b789b23e5b95a685bd522e40 (patch) | |
tree | e745d46cba8ae7d3eb5c107732329ccf4d4273a8 /app/assets/javascripts | |
parent | 9de377267dc7ea9b72e02e6dc5a083cdc3ee980b (diff) | |
parent | 3e24a102976586a4417820694580eb9b72defb3d (diff) |
Merge branch 'sidebar-clipboard-toggle' into 'master'
Prevent toggling sidebar when clipboard icon clicked.
Prevents sidebar being toggle when copy to clipboard icon clicked.
Fixes #19399
![sidebar-toggle](/uploads/e4e8dfe9ff2546464269242b5f3e34b1/sidebar-toggle.gif)
See merge request !5326
Diffstat (limited to 'app/assets/javascripts')
-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') |