1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

Note URLs should highlight the linked note (#22978).

Patch by Mizuki ISHIKAWA.

git-svn-id: http://svn.redmine.org/redmine/trunk@16776 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2017-07-08 14:56:19 +00:00
parent 74111bd9d3
commit f23c9eb177
2 changed files with 12 additions and 0 deletions

View File

@ -167,3 +167,14 @@ end %>
<% end %> <% end %>
<%= context_menu %> <%= 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', 2000)
}
});
});
<% end %>

View File

@ -760,6 +760,7 @@ div.thumbnails {margin:0.6em;}
div.thumbnails div {background:#fff;border:2px solid #ddd;display:inline-block;margin-right:2px;} div.thumbnails div {background:#fff;border:2px solid #ddd;display:inline-block;margin-right:2px;}
div.thumbnails img {margin: 3px; vertical-align: middle;} div.thumbnails img {margin: 3px; vertical-align: middle;}
#history div.thumbnails {margin-left: 2em;} #history div.thumbnails {margin-left: 2em;}
#history div.highlight {background-color: #ffffdd;}
p.other-formats { text-align: right; font-size:0.9em; color: #666; } p.other-formats { text-align: right; font-size:0.9em; color: #666; }
.other-formats span + span:before { content: "| "; } .other-formats span + span:before { content: "| "; }