diff --git a/app/views/issues/show.html.erb b/app/views/issues/show.html.erb index 3da22d4af..46494ff9f 100644 --- a/app/views/issues/show.html.erb +++ b/app/views/issues/show.html.erb @@ -167,3 +167,14 @@ 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', 2000) + } + }); +}); +<% end %> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 1097bb2f1..020b04c03 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -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 img {margin: 3px; vertical-align: middle;} #history div.thumbnails {margin-left: 2em;} +#history div.highlight {background-color: #ffffdd;} p.other-formats { text-align: right; font-size:0.9em; color: #666; } .other-formats span + span:before { content: "| "; }