diff options
author | Jacopo <beschi.jacopo@gmail.com> | 2017-04-16 12:42:08 +0300 |
---|---|---|
committer | Jacopo <beschi.jacopo@gmail.com> | 2017-04-16 12:51:21 +0300 |
commit | de62d3b48c45030b91113e61bae0f3a2f24797e9 (patch) | |
tree | 510ec9981dedab53f234b4eec3141d3bdb9c0c95 /app/assets/javascripts/behaviors | |
parent | ae52d1a4b82cd86130c92795390fc3d9664d180b (diff) |
Expand/collapse button -> Change to make it look like a toggle
Changed the expand/collapse button to look different when is
opened/closed
Diffstat (limited to 'app/assets/javascripts/behaviors')
-rw-r--r-- | app/assets/javascripts/behaviors/toggler_behavior.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/assets/javascripts/behaviors/toggler_behavior.js b/app/assets/javascripts/behaviors/toggler_behavior.js index 4c9ad128e6c..77e92ff8caf 100644 --- a/app/assets/javascripts/behaviors/toggler_behavior.js +++ b/app/assets/javascripts/behaviors/toggler_behavior.js @@ -22,6 +22,7 @@ $(() => { } $('body').on('click', '.js-toggle-button', function toggleButton(e) { + e.target.classList.toggle('open'); toggleContainer($(this).closest('.js-toggle-container')); const targetTag = e.currentTarget.tagName.toLowerCase(); |