Commit e86e9db3 by tasawernawaz Committed by Tasawer Nawaz

fix google diff configuration

ECOM-7147
parent acd76c89
......@@ -16,8 +16,10 @@ $(document).on('click', '.btn-show-changes', function (e) {
});
var dmp = new diff_match_patch();
dmp.Diff_EditCost = 8;
function showDiff($object, $historyObject, $outputDiv) {
var d = dmp.diff_main($historyObject.text(), $object.text());
dmp.diff_cleanupEfficiency(d);
$outputDiv.html(dmp.diff_prettyHtml(d));
$historyObject.hide();
$outputDiv.show();
......@@ -25,6 +27,7 @@ function showDiff($object, $historyObject, $outputDiv) {
function showDiffCourseDetails(currentObject, historyObject, $outputDiv) {
var d = dmp.diff_main(currentObject, historyObject);
dmp.diff_cleanupEfficiency(d);
$outputDiv.html(dmp.diff_prettyHtml(d));
$outputDiv.show();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment