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 @@