diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2018-04-12 22:13:50 +0300 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2018-04-12 22:13:50 +0300 |
commit | 705d7f703b10f5e1a066d0623bf32d07868d6668 (patch) | |
tree | d8e836e57ce9d5b7a7254a378fa4fa78dcd6bce0 /app/assets/javascripts/notes.js | |
parent | b8401cd0b201ab9caecb60dcc477637e70da4df9 (diff) |
[skip ci] Use toggleClass instead of toggle
Diffstat (limited to 'app/assets/javascripts/notes.js')
-rw-r--r-- | app/assets/javascripts/notes.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js index b4daeb7067b..b0459cbf696 100644 --- a/app/assets/javascripts/notes.js +++ b/app/assets/javascripts/notes.js @@ -1229,8 +1229,8 @@ export default class Notes { const isForced = forceShow === true || forceShow === false; const showNow = forceShow === true || (!isCurrentlyShown && !isForced); - targetRow.toggle(showNow); - notesContent.toggle(showNow); + targetRow.toggleClass('hidden', showNow); + notesContent.toggleClass('hidden', showNow); } if (addForm) { |