From ca3c0431df2759b7f19ca49e9578939e4c2443fe Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Tue, 20 Oct 2015 12:52:47 +0200 Subject: [PATCH] fix article type icon --- .../app/controllers/ticket_zoom/article_new.coffee | 3 +-- .../javascripts/app/views/ticket_zoom/article_new.jst.eco | 6 +++++- app/assets/stylesheets/zammad.scss | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/app/controllers/ticket_zoom/article_new.coffee b/app/assets/javascripts/app/controllers/ticket_zoom/article_new.coffee index 73ef9913f..915a6a61a 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom/article_new.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom/article_new.coffee @@ -330,11 +330,10 @@ class App.TicketZoomArticleNew extends App.Controller @el.find('.js-articleTypes').addClass('is-hidden') setArticleType: (type) -> - typeIcon = @$('.js-selectedType') @type = type @$('[name=type]').val(type) @articleNewEdit.attr('data-type', type) - typeIcon.find('use').attr 'xlink:href', "#icon-#{@type}" + @$('.js-selectableTypes').addClass('hide').filter("[data-type='#{ type }']").removeClass('hide') # show/hide attributes for articleType in @articleTypes diff --git a/app/assets/javascripts/app/views/ticket_zoom/article_new.jst.eco b/app/assets/javascripts/app/views/ticket_zoom/article_new.jst.eco index b8bdecf07..e380f4038 100644 --- a/app/assets/javascripts/app/views/ticket_zoom/article_new.jst.eco +++ b/app/assets/javascripts/app/views/ticket_zoom/article_new.jst.eco @@ -7,7 +7,11 @@