diff --git a/src/main/webapp/assets/common/js/gitbucket.js b/src/main/webapp/assets/common/js/gitbucket.js index 8be1dc5..db16822 100644 --- a/src/main/webapp/assets/common/js/gitbucket.js +++ b/src/main/webapp/assets/common/js/gitbucket.js @@ -149,7 +149,7 @@ $('').append( lineNum('old',o.base, o.change), $('').html(o.base ? baseTextDom(o.base): "").addClass(o.change), - lineNum('old',o.head, o.change), + lineNum('new',o.head, o.change), $('').html(o.head ? headTextDom(o.head): "").addClass(o.change) ).appendTo(tbody); break; @@ -158,7 +158,7 @@ $('').append( lineNum('old',o.base, 'delete'), $('').append(ld.base).addClass('delete'), - lineNum('old',o.head, 'insert'), + lineNum('new',o.head, 'insert'), $('').append(ld.head).addClass('insert') ).appendTo(tbody); break; @@ -379,7 +379,7 @@ strLength = string.length, lWord = word.toUpperCase(), wordLength = word.length; - + return calc(zero, 0, 0, 0, 0, []); function calc(score, startAt, skip, runningScore, i, matchingPositions){ if( i < wordLength) {