From 166540d743be89d5544870b69bab7b6a46ca3a9c Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Sun, 8 Sep 2024 17:25:02 +0000 Subject: Replaces icon-expanded and icon-collapsed with SVG icons (#23980). git-svn-id: https://svn.redmine.org/redmine/trunk@23041 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/wiki_formatting/macros.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/redmine/wiki_formatting') diff --git a/lib/redmine/wiki_formatting/macros.rb b/lib/redmine/wiki_formatting/macros.rb index f2b8c297f..1baac3452 100644 --- a/lib/redmine/wiki_formatting/macros.rb +++ b/lib/redmine/wiki_formatting/macros.rb @@ -248,10 +248,10 @@ module Redmine hide_label = args[1] || args[0] || l(:button_hide) js = "$('##{html_id}-show, ##{html_id}-hide').toggle(); $('##{html_id}').fadeToggle(150);" out = ''.html_safe - out << link_to_function(show_label, js, :id => "#{html_id}-show", :class => 'icon icon-collapsed collapsible') + out << link_to_function(icon_with_label('angle-right', show_label), js, :id => "#{html_id}-show", :class => 'icon icon-collapsed collapsible') out << link_to_function( - hide_label, js, + icon_with_label('angle-down', hide_label), js, :id => "#{html_id}-hide", :class => 'icon icon-expanded collapsible', :style => 'display:none;' -- cgit v1.2.3