Commit 6881adc8 authored by jplang's avatar jplang

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

Patch by Mizuki ISHIKAWA.

git-svn-id: https://svn.redmine.org/redmine/trunk@16776 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 028b435a
...@@ -167,3 +167,14 @@ end %> ...@@ -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 %>
...@@ -760,6 +760,7 @@ div.thumbnails {margin:0.6em;} ...@@ -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: "| "; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment