Feature #22978 » highlight_the_linked_note-v3.patch
| 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).addClass('highlight').removeClass('highlight', 2000)
   | 
|
| 177 | 
    }  | 
|
| 178 | 
    });  | 
|
| 179 | 
    });  | 
|
| 180 | 
    <% end %>  | 
|
| public/stylesheets/application.css | ||
|---|---|---|
| 760 | 760 | 
    div.thumbnails div {background:#fff;border:2px solid #ddd;display:inline-block;margin-right:2px;}
   | 
| 761 | 761 | 
    div.thumbnails img {margin: 3px; vertical-align: middle;}
   | 
| 762 | 762 | 
    #history div.thumbnails {margin-left: 2em;}
   | 
| 763 | 
    #history div.highlight {background-color: #ffffdd;}
   | 
|
| 763 | 764 | |
| 764 | 765 | 
    p.other-formats { text-align: right; font-size:0.9em; color: #666; }
   | 
| 765 | 766 | 
    .other-formats span + span:before { content: "| "; }
   | 
- « Previous
 - 1
 - 2
 - 3
 - 4
 - Next »