Browse Source

Now it's actually working ;)

pull/2288/head
Kim "BKC" Carlbäcker 9 years ago
parent
commit
06ad0f23f7
  1. 5
      templates/repo/diff_box_unified.tmpl

5
templates/repo/diff_box_unified.tmpl

@ -73,11 +73,10 @@
(function() {
$('.add-code').each(function() {
var prev = $(this).prev();
if(prev.is('.del-code')) {
while(prev.prev().is('.del-code') && prev.prev().text().trim() !== '') {
if(prev.is('.del-code') && prev.children().eq(3).text().trim() === '') {
while(prev.prev().is('.del-code') && prev.prev().children().eq(3).text().trim() === '') {
prev = prev.prev();
}
console.log("done");
prev.children().eq(3).html($(this).children().eq(3).html());
prev.children().eq(2).html($(this).children().eq(2).html());
prev.children().eq(2).attr('style', 'background-color: #eaffea !important');

Loading…
Cancel
Save