mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-02 11:36:05 +01:00
Merge pull request #1996 from kounoike/fix-json-diff
Fix JSON diff issue.
This commit is contained in:
@@ -78,10 +78,10 @@ function displayErrors(data, elem){
|
||||
function diffUsingJS(oldTextId, newTextId, outputId, viewType, ignoreSpace) {
|
||||
var old = $('#'+oldTextId), head = $('#'+newTextId);
|
||||
var render = new JsDiffRender({
|
||||
oldText: old.data('val'),
|
||||
oldTextName: old.data('file-name'),
|
||||
newText: head.data('val'),
|
||||
newTextName: head.data('file-name'),
|
||||
oldText: old.attr('data-val'),
|
||||
oldTextName: old.attr('data-file-name'),
|
||||
newText: head.attr('data-val'),
|
||||
newTextName: head.attr('data-file-name'),
|
||||
ignoreSpace: ignoreSpace,
|
||||
contextSize: 4
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user