Project

General

Profile

Feature #22978 » highlight_the_linked_note-v2.patch

Go MAEDA, 2017-06-28 09:30

View differences:

app/views/issues/show.html.erb
167 167
<% end %>
168 168

  
169 169
<%= context_menu %>
170

  
171
<%= javascript_tag do %>
172
$(document).ready(function(){
173
  $(window).on('load hashchange',function(){
174
    var hash = location.hash;
175
    if (hash.match(/^#(change|note)-\d+$/)){
176
      $('div' + hash).css('background-color', '#ffffdd').animate({backgroundColor: ''}, 2000);
177
    }
178
  });
179
});
180
<% end %>
(3-3/4)