diff options
author | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2016-10-19 03:41:29 +0300 |
---|---|---|
committer | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2016-10-28 17:00:30 +0300 |
commit | 002670ec73604feaf1e675ce98157bfb3d5709c9 (patch) | |
tree | 7c4feafe48a39bdc4a68243ff42ff34852800780 /app/assets/javascripts/behaviors | |
parent | 0a848266d7b66b3dce19298337e9ac0b1471db11 (diff) |
Finish styling commits view
Diffstat (limited to 'app/assets/javascripts/behaviors')
-rw-r--r-- | app/assets/javascripts/behaviors/details_behavior.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/assets/javascripts/behaviors/details_behavior.js b/app/assets/javascripts/behaviors/details_behavior.js index 48490869364..a64cefb62bd 100644 --- a/app/assets/javascripts/behaviors/details_behavior.js +++ b/app/assets/javascripts/behaviors/details_behavior.js @@ -15,6 +15,11 @@ return $("body").on("click", ".js-details-expand", function(e) { $(this).next('.js-details-content').removeClass("hide"); $(this).hide(); + + var truncatedItem = $(this).siblings('.js-details-short'); + if (truncatedItem.length) { + truncatedItem.addClass("hide"); + } return e.preventDefault(); }); }); |