From ca3f39f5fd7eb2342fce602ee013fa8d144fe73c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 29 Jul 2017 12:18:53 +0000 Subject: [PATCH] Use CSS to highlight the journal title (#22978). git-svn-id: http://svn.redmine.org/redmine/trunk@16912 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/issues/show.html.erb | 11 ----------- public/stylesheets/application.css | 2 ++ 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/app/views/issues/show.html.erb b/app/views/issues/show.html.erb index bac3dc51f..3da22d4af 100644 --- a/app/views/issues/show.html.erb +++ b/app/views/issues/show.html.erb @@ -167,14 +167,3 @@ end %> <% end %> <%= context_menu %> - -<%= javascript_tag do %> -$(document).ready(function(){ - $(window).on('load hashchange',function(){ - var hash = location.hash; - if (hash.match(/^#(change|note)-\d+$/)){ - $('div' + hash).addClass('highlight').removeClass('highlight', 4000) - } - }); -}); -<% end %> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 5d29244ee..fb5af5511 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -512,6 +512,8 @@ div.journal ul.details a:hover, ul.revision-info a:hover {color:#D14848;} body.avatars-on div.journal {padding-left:32px;} div.journal h4 img.gravatar {margin-left:-32px;} +#history div:target h4 {background-color:#DDEEFF;} + div#activity dl, #search-results { margin-left: 2em; } div#activity dd, #search-results dd { margin-bottom: 1em; padding-left: 18px; font-size: 0.9em; } div#activity dt.me .time { border-bottom: 1px solid #999; }