|
Lines 413-422
Link Here
|
| 413 |
_("Field") + |
413 |
_("Field") + |
| 414 |
`</div> |
414 |
`</div> |
| 415 |
<div class="col fw-bold">` + |
415 |
<div class="col fw-bold">` + |
| 416 |
_("Keep") + |
416 |
_("Destination record") + |
| 417 |
`</div> |
417 |
`</div> |
| 418 |
<div class="col fw-bold">` + |
418 |
<div class="col fw-bold">` + |
| 419 |
_("Delete") + |
419 |
_("Source record") + |
| 420 |
`</div> |
420 |
`</div> |
| 421 |
<div class="col fw-bold">` + |
421 |
<div class="col fw-bold">` + |
| 422 |
_("Copy value") + |
422 |
_("Copy value") + |
|
Lines 450-462
Link Here
|
| 450 |
$("#copy-fields .row input[type=checkbox]").on("click", function () { |
450 |
$("#copy-fields .row input[type=checkbox]").on("click", function () { |
| 451 |
let ins = $(this).closest(".row").find(".col2 pre").data("og").toString(); |
451 |
let ins = $(this).closest(".row").find(".col2 pre").data("og").toString(); |
| 452 |
let del = $(this).closest(".row").find(".col3 pre").data("og").toString(); |
452 |
let del = $(this).closest(".row").find(".col3 pre").data("og").toString(); |
| 453 |
let diffs; |
453 |
let diffs = diffString(ins, del); |
| 454 |
if ($(this).is(":checked")) { |
454 |
|
| 455 |
diffs = diffString(ins, del); |
455 |
$(this).closest(".row").find(".col3 pre, .col2 pre").html(diffs); |
| 456 |
} else { |
456 |
|
| 457 |
diffs = diffString(del, ins); |
457 |
$(this) |
| 458 |
} |
458 |
.closest(".row") |
| 459 |
$(this).closest(".row").find(".col2 pre, .col3 pre").html(diffs); |
459 |
.find(".col2, .col3") |
|
|
460 |
.each(function () { |
| 461 |
$(this).toggleClass("col2", "col3"); |
| 462 |
$(this).toggleClass("col3", "col2"); |
| 463 |
}); |
| 460 |
}); |
464 |
}); |
| 461 |
} |
465 |
} |
| 462 |
</script> |
466 |
</script> |
| 463 |
- |
|
|