mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-12-22 00:09:54 +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) {
|
function diffUsingJS(oldTextId, newTextId, outputId, viewType, ignoreSpace) {
|
||||||
var old = $('#'+oldTextId), head = $('#'+newTextId);
|
var old = $('#'+oldTextId), head = $('#'+newTextId);
|
||||||
var render = new JsDiffRender({
|
var render = new JsDiffRender({
|
||||||
oldText: old.data('val'),
|
oldText: old.attr('data-val'),
|
||||||
oldTextName: old.data('file-name'),
|
oldTextName: old.attr('data-file-name'),
|
||||||
newText: head.data('val'),
|
newText: head.attr('data-val'),
|
||||||
newTextName: head.data('file-name'),
|
newTextName: head.attr('data-file-name'),
|
||||||
ignoreSpace: ignoreSpace,
|
ignoreSpace: ignoreSpace,
|
||||||
contextSize: 4
|
contextSize: 4
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user