Fix JSON diff issue.

This commit is contained in:
KOUNOIKE Yuusuke
2018-05-04 14:39:29 +09:00
parent f321d0974e
commit 378b3986dc

View File

@@ -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
});