diff --git a/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee b/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee index 37017c26b..530eb5b6b 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee @@ -629,9 +629,9 @@ class ArticleView extends App.Controller # runntime update if internal - $(e.target).closest('.article-content').find('.text-bubble').addClass('internal') + $(e.target).closest('.ticket-article-item').find('.text-bubble').addClass('internal') else - $(e.target).closest('.article-content').find('.text-bubble').removeClass('internal') + $(e.target).closest('.ticket-article-item').find('.text-bubble').removeClass('internal') show_toogle: (e) -> e.preventDefault() @@ -646,16 +646,16 @@ class ArticleView extends App.Controller more_toogle: (e) -> e.preventDefault() - if !$(e.target).closest('.article-content').find('.article-meta.top').hasClass('hide') - $(e.target).closest('.article-content').find('.more').removeClass('hide') - $(e.target).closest('.article-content').find('.close-details').addClass('hide') - $(e.target).closest('.article-content').find('.article-meta.top').addClass('hide') - $(e.target).closest('.article-content').find('.article-meta.bottom').addClass('hide') + if !$(e.target).closest('.ticket-article-item').find('.article-meta.top').hasClass('hide') + $(e.target).closest('.ticket-article-item').find('.more').removeClass('hide') + $(e.target).closest('.ticket-article-item').find('.close-details').addClass('hide') + $(e.target).closest('.ticket-article-item').find('.article-meta.top').addClass('hide') + $(e.target).closest('.ticket-article-item').find('.article-meta.bottom').addClass('hide') else - $(e.target).closest('.article-content').find('.more').addClass('hide') - $(e.target).closest('.article-content').find('.close-details').removeClass('hide') - $(e.target).closest('.article-content').find('.article-meta.top').removeClass('hide') - $(e.target).closest('.article-content').find('.article-meta.bottom').removeClass('hide') + $(e.target).closest('.ticket-article-item').find('.more').addClass('hide') + $(e.target).closest('.ticket-article-item').find('.close-details').removeClass('hide') + $(e.target).closest('.ticket-article-item').find('.article-meta.top').removeClass('hide') + $(e.target).closest('.ticket-article-item').find('.article-meta.bottom').removeClass('hide') checkIfSignatureIsNeeded: (type) => diff --git a/app/assets/javascripts/app/views/ticket_zoom/article_view.jst.eco b/app/assets/javascripts/app/views/ticket_zoom/article_view.jst.eco index fea49a315..f3e0747c1 100644 --- a/app/assets/javascripts/app/views/ticket_zoom/article_view.jst.eco +++ b/app/assets/javascripts/app/views/ticket_zoom/article_view.jst.eco @@ -1,75 +1,75 @@ <% for article in @articles: %>