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:
parent
74111bd9d3
commit
f23c9eb177
@ -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;}
|
|||||||
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: "| "; }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user